mstechca
New Member
I was wondering, if I executed the following instruction:
MOV <port address>, <data>
and if I used a 555 to generate the clock pulses to the microcontroller,
How many complete cycles (on and off's) must the timer produce before the instruction above is processed?
I'm asking this because I want to eventually save some bytes in my code when displaying text on an LCD.
For now, when I want to write to the LCD, I have to always set and clear a bit that is tied to the enable line. This setting and clearing wastes 2 bytes per character.
What I intend to do is make a counter whose clock pin is tied to the 555's output and when the counter reaches the correct number (which is what I need to know), the "enable" pin of the LCD will then be pulsed and the counter is reset.
MOV <port address>, <data>
and if I used a 555 to generate the clock pulses to the microcontroller,
How many complete cycles (on and off's) must the timer produce before the instruction above is processed?
I'm asking this because I want to eventually save some bytes in my code when displaying text on an LCD.
For now, when I want to write to the LCD, I have to always set and clear a bit that is tied to the enable line. This setting and clearing wastes 2 bytes per character.
What I intend to do is make a counter whose clock pin is tied to the 555's output and when the counter reaches the correct number (which is what I need to know), the "enable" pin of the LCD will then be pulsed and the counter is reset.