wuchy143
Member
Hi,
I'm learning how to program pics(PIC12F675) and am trying to simply make a software UART thought it's really just a UAT because I only need to be able to transmit data to my computer.(i have a TTL to RS232 converter I will hook it up to b/t my computer and my PIC)
My mentor said that using a state variable and interrupts should be used to TX my data because the smaller pics have a tiny stack.
Can someone explain state variables and how I can use them in my context here. I'm just not getting it and it's been tough finding info on them. Or if you know of a good place online to read about them that would be great!!
Thanks
-mike
I'm learning how to program pics(PIC12F675) and am trying to simply make a software UART thought it's really just a UAT because I only need to be able to transmit data to my computer.(i have a TTL to RS232 converter I will hook it up to b/t my computer and my PIC)
My mentor said that using a state variable and interrupts should be used to TX my data because the smaller pics have a tiny stack.
Can someone explain state variables and how I can use them in my context here. I'm just not getting it and it's been tough finding info on them. Or if you know of a good place online to read about them that would be great!!
Thanks
-mike