Mike_C
Newbie level 1
- Joined
- Apr 6, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,292
I'm a senior in Electrical Engineering at a major university, but I'm new to embedded systems design. I'm trying to get a PIC12F1822 configured as an SPI master device capable of passing a short list of configuration commands to an already designed (and functioning) slave system.
I've seen a handful of examples for more elaborate PIC18F series devices, but the product I'm designing has to be only a couple centimeters in size, so I can't use a 20+ pin PIC in my implementation. I need to stick with small chips. Has anyone ever seen any sample code for a series 12F PIC being configured as an SPI master? The datasheets spell out up and down that the device is capable of everything I need it to do, but I can't find any code samples or other guiding principles to get me started.
Many Thanks!
I've seen a handful of examples for more elaborate PIC18F series devices, but the product I'm designing has to be only a couple centimeters in size, so I can't use a 20+ pin PIC in my implementation. I need to stick with small chips. Has anyone ever seen any sample code for a series 12F PIC being configured as an SPI master? The datasheets spell out up and down that the device is capable of everything I need it to do, but I can't find any code samples or other guiding principles to get me started.
Many Thanks!