Chip: 12F683 @ 8MHz
Development tool: MPLab 8.92 (latest); MPLab Sim
Software: Bit-banged from Mike McLaren(K8LH ; Date: 27-Nov-04 (rev 22-Dec-04)) Downloaded from PicList
Language: MPASM
I been through the program and followed its flow. It compiles fine. He sets up TMR2 for a 104 uS interrupt (9600 baud) and does all of the testing and mechanics between interrupts. I would like to run it in simulation and have never done anything more complex than firing a trigger and a recurring PWM stimulus. There is an IOC to identify the receive start bit. I can handle that.
1) Without pre-loading it in the program, how would you simulate a transmitted byte and a received byte using the simulator (1 start, 8 data, ≥1 stop, no parity)?
2) Similarly, how can you set and change flag bits in a register during simulation?
Regards, John