| ??? 08/22/00 19:13 Read: times |
#4640 - RE: 8051 ROM lookup table |
that is quite simple.
after rotating the ACC the next bit to send is stored in the carry-bit. with the command "mov Dataout,C" you can mov the carry-bit to any port-pin which is defined as Dataout. To create a clock signal with 50% duty cycle you have at least two possibilities: first is to calculate the runtime of the commands. that's quite good if you have to keep the transmission as fast as possible. the second is similar to the baud rate generation by a timer. using the timer in auto-reload mode generates the 50% duty cycle exactly. you just have to complement the clock pin by the ISR of the timer overflow(cpl CLK). There are some points you have to pay attention to: Does your driver need transmission with LSB or MSB first? What edge is used to clock the data(positive or negative)? if you do the communication by software thats no problem, but it changes code a little bit(e.g. rlc or rrc) Christian |
| Topic | Author | Date |
| 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
| RE: 8051 ROM lookup table | 01/01/70 00:00 | |
RE: 8051 ROM lookup table | 01/01/70 00:00 |



