Commit Graph

9 Commits

Author SHA1 Message Date
Doug Brown
145487d388 Added GPL header to all of my source files. 2012-05-25 20:21:04 -07:00
Doug Brown
52d33e077f Broke out the SPI read/write into a single routine. Less code repetition -- easier to read and smaller. 2011-12-17 13:43:12 -08:00
Doug Brown
540e04331a Fixed the ordering of the chips -- I had the bytes reversed. Now, when I write/read a continuous stream of data, the bytes will correspond with the correct chips. 2011-12-17 11:18:56 -08:00
Doug Brown
f5bf5fed36 Commented the change I made to the DDR bit convention 2011-12-07 21:41:50 -08:00
Doug Brown
918b615654 Oops! the MCP23S17's DDR is backwards from the AVR. 1 = input, 0 = output. After swapping them, my electrical test is working! 2011-12-07 21:30:42 -08:00
Doug Brown
b475c28040 Fixed a bug in the address line tests, updated fusebits for now [with no bootloader yet], started working on getting all the tests working 2011-12-07 21:17:47 -08:00
Doug Brown
1595c69890 OK -- so I separated the actual port code from the external memory controller code. I think this makes more sense.
It does add some complexity to the code. I may be going through a chain of calls just to turn the CS pin on, for instance. Hopefully I'm not going too crazy with this.

Anyway, this means that I can control the ports from a SIMM electrical test routine using the same types of functions that the actual programming  controlling code would use, without having to duplicate a bunch of port definitions and bit manipulation. I made sure to add all the functions I can think of needing to the ports module. We'll see if I got them all!
2011-11-27 00:01:29 -08:00
Doug Brown
4c51019e30 Moved the common "read/write register A and B together as a 16-bit
value" functionality into a read function and a write function. Also
added ability to set pull-ups.
2011-11-26 22:17:17 -08:00
Doug Brown
407f6831a9 Initial import of my test code for the SIMM programmer board. Right now
it contains an (untested) MCP23S17 driver complete with AVR SPI support,
and an (untested) external memory interface driver that uses it.
2011-11-25 23:10:30 -08:00