??? 11/20/06 22:38 Read: times |
#128327 - Assistance Please Russell Responding to: ???'s previous message |
Dear Russell,
Personally, the way I'd achieve this is to have a table of the frequency values and in the PCA interrupt count the pulses then get the next frequency value from the table. This gets away from having to wait in your main loop. The Emulator being used is a Python PICE'52. Please grant me helping hand in how one could load values like "3125" or "5163" into CCAP0L & CCAP0H by means of a look-up table. The following statement will not work because its limited to on 255 right ? LOOK_UP_TABLE: MOVC A,@A+PC RET .DCW 3125,5163,1042,781,625,521,446 .DCW 391,347,313,284,260,240,223 Please do assist, since everything is new to me. Rgds Ranjit |