This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this demo is specifically set to run on the R1.0 ATmega328PB Proto PCB | |
// and the R1.8 'Sweet Sensor Suite' boards. | |
// demo board is using a 12MHz XTAL with the DIV8 fuse cleared, so... 12MHz | |
// to operate this demo set the bus rate for your device correctly | |
#define F_CPU 12E6 | |
// the accelerometer and i/o chip both use interrupts that this demo use | |
// accelerometer is configured to interrupt on tap (used to wakeup the OLED) | |
// i/o configured to interrupt on pin change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: I2C Demo | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Simple Demo of CGRAM on the Hitachi LCD | |
// Date: Dec 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: I2C Demo 2 - Advanced RTC, Accelerometer | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Demonstration of the I2C Driver Libraries | |
// Date: Dec 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: Stepper (Port A4-A7) Demo | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Simple Demo of Full-Wave Reversible Stepper Control | |
// (using a ) | |
// Date: Dec 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: I2C Demo | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Demonstration of the I2C Driver Libraries | |
// Date: Dec 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: PWM Demo | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Demo of using PWM to control the Tricolour LED. | |
// Date: Nov 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: Pulse Accumulator Demo | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Very rudimentary demo of a frequency counter | |
// using Pulse Accumulator A | |
// Date: Nov 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: Exam 1 - Solution | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong, based on work by Carlos Estay | |
// Details: Demo of using the ECT for an HC-SR04 ultrasonic distance snsr | |
// Date: Nov 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: Demo 5 - ADC | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Demo of voltage measurement | |
// Date: Oct 2023 | |
// Revision History : | |
///////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////// | |
// HC12 Program: Demo 4 - Serial Structures | |
// Processor: MC9S12XDP512 | |
// Bus Speed: 20 MHz (Requires Active PLL) | |
// Author: AJ Armstrong | |
// Details: Demonstrates basic SCI operations allowing one board | |
// to synchronize with another. If PJ1 is pressed, | |
// the current state of the board (Segs and Leds) is trans- | |
// mitted to the other board. PJ0 resets everything to 0. | |
// Date: Oct 2023 |
NewerOlder