We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I use a LCD 1261B and I don't know why I can both read and write to the LCD in ASM but I can only write but not read from LCD(even I set bit to make the pin ready to read).Do any of you have any idea or solution to my problem?.
If you need to produce precise timing by counting instruction cycles, you must do it in assembler. You simply do not have that level of control in 'C' - that is the whole point of high-level languages! 117% agreed. an addition: After I got on trouble once stealing my own code for another project I now surround all timing defines with a define of the oscillator frequency
#ifdef CLOCK49M #define DELAY_1_COUNT 47 #endif