??? 03/03/04 19:55 Read: times |
#65894 - RE: LPC932 with simple I2C peripherals Responding to: ???'s previous message |
Tilmann:
I compared the registers in the 'LPC932 and the 'F126 chips. The layout and content is almost exactly the same. I also noticed that all the status codes that are set and then get used in the interrupt routine are the same codes with same meanings for both chips!! It would appear that Philips and Cygnal both purchased the same IP for this peripheral functions on their chips. (Do note that there are some minor differences with the Cygnal implementation that most likely stem from some additional features for the SMBus concept). The similarity that I noticed was so striking that I am going to guess that the code I showed is possible to shape into something for the 'LPC932 with just a small amount of work!! You would need to change the SFR names of course and several bits have alternate names. The major differences come into play regarding how the clocking is generated. Cygnal uses a single up counter to generate period whereas the Philips has separate controls for the high and low times from what I read. The Cygnal part also has the SFR paging system that you would have to either comment out or delete. (You see the Cygnal 'F126 has so many SFRs they do not all fit within the normal 0x80 »» 0xFF address space so they have made this space be paged). Michael Karas |