Main Board Template
From Curuxa Community
| Custom Main Board: Name of Main Board | |
|---|---|
| Author | YOUR_NAME, aka YOUR_NICK |
| Program Memory | XX kword |
| RAM | XX bytes |
| Data pins | XX |
Write an introduction here. Main Board built on a perfboard using a Microchip PIC microcontroller. This is intended for this and that I can't do with official Main Boards. Keep this introduction simple.
Features
- Based on a PIC16Fxxx
- XX pin
- Power supply: XX to XXV
- Program memory: XX bytes (XX instructions)
- RAM: XX bytes
- EEPROM: XX bytes
- XXkHz-XXMHz internal oscillator
- Up to XXMHz external oscillator
- Two 8-bit timers. One 16-bit timer
- Two CPP/PWM modules
- 10-bit, XX-channel Analog-to-Digital Converter
- SPP (SPI, slave I2C, master I2C must be implemented in software)
- EUSART/SCI/RS-232
- Dual Analog Comparator module
- ICSP connector
- Up to XX data input/outputs
- One I2C connector with pull-up resistors
- Two decoupling capacitors
Electronic circuit
Bill of materials:
- Perforated board of at least XXxXX holes. Individual pads, not copper strips
- 1x PIC16Fxxx
- 1x XX-pin PDIP socket
- 2x 10k, 1/4W resistors
- 6x Right-angle male headers (usually sold as 40-pin strips)
- XX straight male headers (usually sold as 40-pin strips) (you can also buy double-row strips)
- 1x 100uF electrolytic capacitor
- 1x 100nF ceramic capacitor
- Some thin wire
Notes
Write here some notes about your Main Board, if necessary. For example:
Both decoupling capacitors can usually be left out of the board, but it's not recommended. They stabilize the voltage from the power supply and filter small voltage peaks/drops. Capacitive or inductive loads such as motors require decoupling capacitors.
The I2C connector and its pull-up resistors can also be avoided when you are certain you won't be using I2C.
There is some empty room at the corners so you can clamp the board somewhere.
Construction
Test
/*================================================================== * Sample program for XXXXX custom Main Board * * This program configures all available pins as digital outputs. * You can check that all digital pins are set at the same voltage as * the power source using a voltmeter or Module LTIND-A (the LED * should light up) * Note: XX (pin XX) is an input-only pin * * http://curuxa.org *=================================================================*/ #include <pic16fxxx.h> void main() { //settings... while(1) { //program... } }

