Previous related thread: https://www.electro-tech-online.com/threads/stimulus-for-software-uart.139345/
Language: MPASM
Tool: MPLab SIM
Chip: 12F683
Code source:
Decided to just set the register flags in code so I could follow the simulation. Albeit clumsy, but simple. (BTW, I am using an asynchronous stimulus to initiate receive.)
Problem: Can't set the zero bit in PROC232. I am able to set every other bit. Here are snippets of the modified code for debugging. I have tried a few things, but to keep this short, I won't go into those details. Note: PROC232 is clear prior to the first NOP.
As you can see (Left = modified program; Right = Watch window), when I load w with FF and move it to PROC232, the zero bit is not changed. Tries some other values, such as 0x03 and 0x04, and they work, except for the zero bit.
What sort of things can prevent one from setting a single bit in MPASM?
John
Language: MPASM
Tool: MPLab SIM
Chip: 12F683
Code source:
Decided to just set the register flags in code so I could follow the simulation. Albeit clumsy, but simple. (BTW, I am using an asynchronous stimulus to initiate receive.)
Problem: Can't set the zero bit in PROC232. I am able to set every other bit. Here are snippets of the modified code for debugging. I have tried a few things, but to keep this short, I won't go into those details. Note: PROC232 is clear prior to the first NOP.
As you can see (Left = modified program; Right = Watch window), when I load w with FF and move it to PROC232, the zero bit is not changed. Tries some other values, such as 0x03 and 0x04, and they work, except for the zero bit.
What sort of things can prevent one from setting a single bit in MPASM?
John