| ??? 02/16/03 18:37 Read: times |
#39165 - RE: 10Khz square using 16 Bit Timer Mode Responding to: ???'s previous message |
You have to convert the number 65486 into hecadecimal. In other words convert from base 10 to base 16. I use a calculator that has hex mode to do this conversion. (for example Hewlett Packard 20S Scientific. Casio also has come models which do this).
The conversion 65486 == FFCEh. The high byte if this is FFh and the low byte is CEh. So to program this value into the timer 0 register is like: MOV TH0,#FFh MOV TL0,#CEh Note that the "calc.exe" that comes with Windows has the capability to do decimal to hex conversion as well. Michael Karas |
| Topic | Author | Date |
| 10Khz square using 16 Bit Timer Mode | 01/01/70 00:00 | |
| RE: 10Khz square using 16 Bit Timer Mode | 01/01/70 00:00 | |
| RE: 10Khz square using 16 Bit Timer Mode | 01/01/70 00:00 | |
| How to Check the assembler for DPH? | 01/01/70 00:00 | |
| This is the Best Forum | 01/01/70 00:00 | |
| Problem with x51 assembler using DPH | 01/01/70 00:00 | |
| RE: Problem with x51 assembler using DPH | 01/01/70 00:00 | |
| RE: Problem with X51 assembler using DPH | 01/01/70 00:00 | |
| RE: Problem with X51 assembler using DPH | 01/01/70 00:00 | |
| RE: Problem with x51 assembler using DPH | 01/01/70 00:00 | |
| RE: Problem with x51 assembler using DPH | 01/01/70 00:00 | |
| RE: Problem with x51 assembler using DPH | 01/01/70 00:00 | |
RE: 10Khz square using 16 Bit Timer Mode | 01/01/70 00:00 |



