Re: Controlling OG-4 Decathron with PBP in an efficient way.
If it relates to output port registers I think it is necessary to use High/Low commands.
the only problem with high/low is that they waste time and code space setting/clearing the tris register ,every time they are invoked.
Direct control of port registers like this portb.0=1 may cause problems when the program is long because of memory page issues.
the only issue with direct port writes once you have the tris reg set appropriately is the potential for rmw issues , especially at high clock speeds.
always use lat regs if possible and a shadow reg otherwise if rapid sequential port manipulation of individual pins will be employed
Warning I'm not a teacher
Bookmarks