2. SOFTWARE
The badge comes pre-programmed with three basic firmware modules:
Bootloader, which normally stays resident and ready for loading any other .HEX
firmware via USB cable only
Kernel, which is also resident, and which may be used as a BIOS for user's application
Demo application, which is loaded by the Bootloader, and supported by Kernel. Demo
application is easily removable, so if Bootloader is used to write the new firmware,
demo application will automatically be cleared from the program memory. Of course, it
can programmed again using DEMO 2.HEX file
You can also use your PIC programmer if you wish to start programming the MCU from scratch.
That way you won't need the bootloader, but if you want to use the Kernel source file to
support your application, you’ll have to rearrange it at some critical points, predominantly its
ISR vectors. The easiest way to do it is to change its OFFSET variable, which is defined in
RAMDEF.INC file, and to comment out the line
#include <BootLoader 2b.inc>
which is in the KERNEL 2.INC file.
The whole project (hardware and all source files for all modules) is open, so you are free to use
it, copy and modify and redistribute it.
2.1. CONFIGURATION BITS
Internal RC oscillator 16 MHz (primary oscillator disabled)
PLL with 3× clock multiplier (3×16=48MHz)
System clock at 48 MHz (which is 12 MIPS operation)
Brown Out Reset disabled
Watchdog Timer disabled
MCLR pin enabled
Extended instruction set disabled
Single-Supply ICSP disabled
Background debugger disabled, B6 and B7 are I/O pins
It is possible to change configuration bits via Table Write process, but note that it may be
critical, as some other oscillator settings may render the USB interface and bootloader
unusable. In that case, the only way to unlock the unit is to reprogram it with an external
programmer.
Содержание SUPERCONFERENCE BADGE
Страница 1: ...HACKADAY SUPERCONFERENCE BADGE Pasadena 2016 Nov 5 6 Ver 1 Rev 0 ...
Страница 7: ......
Страница 14: ......