Program is downloaded to the SCM stc89c52rc, and then through the jump line access to LD3320 module, the connection is
Parallel interface to communicate
Sbit LD_WR=P3 ^ 6;
Sbit LD_RD=P3 ^ 7;
Sbit LD_CS=P2 ^ 1;
Sbit LD_A0=P2 ^ 0;
Drive the port definition
Sbit LD_MODE=P3 ^ 5;/* read/write mode selection */
Sbit RSTB=P3 ^ 3;/* */reset port
Sbit the CSB=P2 ^ 1;/* module piece selected port */
Basic wiring below
Transplant program is not aware of the problem was I wiring problems, lead to burn, after open the serial port code only on the electric moment of feedback, then don't have any feedback, microcontroller, does not have any job, level 2 password also won't open, how doesn't work, look at the related articles, normally serial assistants will be waiting to receive password, that is, the code would have been back to 00 come back, I after debugging passed back 4 00 00 00 00, then the end, this question has bothered me for a long time, really don't know how to solve, there is no point, hope eldest brother can help have a look, thanks again!!!!!!
[size=14 px] [/size] [/color]
CodePudding user response:
Is expected to be 3.3 V STC89LE52RC microcontroller, STC89C52RC is 5 V, LD3320 work in 3.3 VCodePudding user response:
100% sure there is something wrong with the program logic, "open the serial port code only on the electric moment of feedback, then there is no feedback" shows the basic code is correct, but after feedback, you may turn into an infinite loopCodePudding user response:
Breaking point, single step debugging