GENERAL: GENERATING A LIBRARY FOR GENERIC DEVICES
Information in this article applies to:
I want to create a library that can be used for any member of the 8051 (or C16x or 251) family. My library uses SFR bits which are located at different addresses depending on the device that is used.
For example, I need to specify three I/O port bits to use for an LCD device. The port bits are named LCD_DS, LCD_RW, and LCD_EN.
Is there a way to implement a library that is independent of a specific microcontroller device?
Yes, this is possible.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Wednesday, August 3, 2005
of your data.