Welcome!
Welcome PIC fans! (to Pascal language fans too!) Technical
Other stuff
Search
Downloads
The last 5 downloads
The last 5 most downloaded
Google
|
Tips - The Read-Modify-Write problem on I/O ports
Here is an excellent article on this problem that everybody should be aware of. Next, if the problem is due to a capacitive load, some delay may be inserted between writes, to allow the cap to charge, but that's empirical and not bulletproof:
PORTA := 0; Next, if the problem is a only due to a capacitive load, we may wait until the cap has charged, but that would hang the processor if nothing happens:
PORTA := 0;
Finally, a bulletproof armor uses a shadow register:
where SHADA is a global byte variable that will reference / hold all manipulations on PORTA for the whole program and that is systematically copied to PORTA after each block of changes. Creation date : 2007.06.24 6:14 PM
| Connection...
Visits of the day: (1)
[ Password lost ? ] [ Join us ] Member online : Anonymous online : 28 Total visits: 396604 Most ever online
Total : 53The 17/05/2013 @ 16:28 Webmaster - Infos
Ip: 107.20.129.212 Search
Friends News
Where are you from?
|



Welcome PIC fans!
General documentation

Tips - The Read-Modify-Write problem on I/O ports
Visits of the day: (1)
PPA
Anonymous online : 28
Total visits: 396604
Total : 53
Top 
