I'm in the process of learning circuits and embedded programming. So far it hasn't been a learning curve - more like a wall. I'm hoping that what I've learned so far will be helpful to someone. I'm currently working with two Microchip microcontrollers. A dsPIC30F4011 and a PIC24FV32KA302. The dsPIC has been designated my "primary" chip. Because the PIC24 has real CTS/RTS flow control I chose to use it for serial communications with the PC. After hours of debugging, turned out that this particular PIC24 has a broken TX UART. Just can't win sometimes. I come from the Java (J2EE to boot!) world, so 'limited resources' is not in my vocabulary. I'm liking the "bigger" chips with plenty of MIPS and memory. I have no desire to work with the slower chips with limited memory :) Here's the list of small libraries I've put together so far. All the code is released under GPL v3 and is here. SupportCan't really call this a library. It currently has several methods related to rotating bits within a byte. I2CLibrary consisting of I2C master and slave code. Works on both the dsPIC30F4011 and the PIC24FV32KA302. Includes a budding implementation of fully configurable register set for the slave. The register functionality is not complete yet. I've only used it for testing.To do:
Serial CommFully functional serial communications code utilizing CTS/RTS flow control. Has been tested up to 115k. There are two lines that need to be changed for the code to compile on the dsPIC as the dsPIC doesn't include out-of-the-box flow control. Please note that the library is a memory hog. Using the default configuration it requires approximately 300 bytes of memory for the various buffers and variables.
|