~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/battcheck/battcheck.c

  • Committer: Selene Scriven
  • Date: 2019-03-02 23:57:09 UTC
  • Revision ID: bzr@toykeeper.net-20190302235709-d7xenmntsvfegkea
Replaced outdated fuse value messages with a pointer to more actively maintained scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *     GND -|   |- Star 2
17
17
 *           ---
18
18
 *
19
 
 * CPU speed is 4.8Mhz without the 8x divider when low fuse is 0x75
20
 
 *
21
 
 * define F_CPU 4800000  CPU: 4.8MHz  PWM: 9.4kHz       ####### use low fuse: 0x75  #######
22
 
 *                             /8     PWM: 1.176kHz     ####### use low fuse: 0x65  #######
23
 
 * define F_CPU 9600000  CPU: 9.6MHz  PWM: 19kHz        ####### use low fuse: 0x7a  #######
24
 
 *                             /8     PWM: 2.4kHz       ####### use low fuse: 0x6a  #######
25
 
 *
26
 
 * Above PWM speeds are for phase-correct PWM.  This program uses Fast-PWM,
27
 
 * which when the CPU is 4.8MHz will be 18.75 kHz
28
 
 *
29
19
 * FUSES
30
 
 *      I use these fuse settings
31
 
 *      Low:  0x75
32
 
 *      High: 0xff
 
20
 *      (check bin/flash*.sh for recommended values)
33
21
 *
34
22
 * STARS (not used)
35
23
 *