| ??? 01/19/05 13:22 Read: times |
#85295 - Try to translate Responding to: ???'s previous message |
OK so why not translating this simply from PIC to '51?
Take for example the "main" of http://www.bobblick.com/techref/p...lockt3.asm (C) Bob Blick: ; Program starts here ;-------- Start call Ram_init ;set variables to nice values call Port_init ;set port directions call Timer_init ;start timer based interrupt ;-------- ; Done initializing, start the endless loop. ;-------- ; Circle ;begin the big loop ; ;-------- ; detect falling edge on PORTA,4 to determine rotary index ; calculate rotation period and store in period_dup ; compare with working period(period_calc) and adjust if way different ;-------- call Check_index ;-------- ; check display state and change if needed ;-------- call Display_now ;-------- ; check keyboard and adjust time ;-------- call Check_keys ;-------- ; check minute flag and increment time if a minute has passed ;-------- call Keep_time ;-------- ; gentlemen, that's a clock, keep it rolling ;-------- goto Circle ;you heard the man, get going! end ;-------- ; end of file ;-------- Well this can be assembled with a '51 assembler (almost), too, so part of your work already done. Now, you need only work out the details.. :-) Jan Waclawek PS. The link is http://www.bobblick.com/techref/p...clock.html |
| Topic | Author | Date |
| Help with project. | 01/01/70 00:00 | |
| HTTP Error 403 - Forbidden | 01/01/70 00:00 | |
| Sorry this is the link | 01/01/70 00:00 | |
| Try to translate | 01/01/70 00:00 | |
| Giving help is not honourable! | 01/01/70 00:00 | |
| Thanks for the advice | 01/01/70 00:00 | |
| Good luck | 01/01/70 00:00 | |
| new ideas | 01/01/70 00:00 | |
| Commutation | 01/01/70 00:00 | |
| replaced | 01/01/70 00:00 | |
| Sad but true | 01/01/70 00:00 | |
| RE: new ideas | 01/01/70 00:00 | |
| date ? | 01/01/70 00:00 | |
| no, it is not, this is | 01/01/70 00:00 | |
| Propeller Clock | 01/01/70 00:00 | |
| Getting a grade | 01/01/70 00:00 | |
| Fully agree with Andy in #85321 | 01/01/70 00:00 | |
| Super smart students | 01/01/70 00:00 | |
Agree. Fullstop. | 01/01/70 00:00 | |
| Project ideas | 01/01/70 00:00 | |
| propellor clock | 01/01/70 00:00 |



