From: drowe67 Date: Sun, 18 May 2008 07:26:37 +0000 (+0000) Subject: added notes to doco and fixed pinout on PIC X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=4cd615a3325874a2145566f8eb5d674f27604e09;p=freetel-svn-tracking.git added notes to doco and fixed pinout on PIC git-svn-id: https://svn.code.sf.net/p/freetel/code@22 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/wispcar/documentation.txt b/wispcar/documentation.txt index b350ce2f..f7ebc0ab 100644 --- a/wispcar/documentation.txt +++ b/wispcar/documentation.txt @@ -113,11 +113,25 @@ router without level conversion, see reference docs for RS232 software UART code in wispcar.asm. I used a MAX232 type chip for interfacing the RS232 tx & rx to a PC's serial port for testing. -Gotcha ------- +Gotchas +------- + +1/ On the PIC12F510 we can only use 'call' to call an address in the +first 256 bytes, so put all funcs at the start of the program, main at +the end. + +2/ If the RS232 characters have occasional errors, the internal clock +oscillator may need tweaking. You can check the baud rate of the +RS232 signals using an oscilloscope, at 4800 baud the bit period +should be 208us. See PIC data sheet for information on adjusting the +internal oscillator. -Can only use 'call' to call an address in the first 256 bytes, so put -all funcs at the start of the program, main at the end. +3/ The Vce(max) rating of Q2 is 35V, and Vgs(max) of Q1 +/- 20V. As +R1/R2 form a voltage divider I think this sets the maximum Vbat at 35V +for the current version, i.e. Q1 will pop first (as Vgs will hit 20V +when Vbat=40V). Need higher Vce Q2 or change circuit to limit +Vgs(max). Need to make sure sufficient Vgs to switch on Q1 at low +Vbat. Maybe two versions with different R1/R2? TODO List --------- @@ -129,17 +143,20 @@ TODO List [ ] connect + & - together on unsued op-amp sections [ ] TAPR open harwdare license -[ ] svn repository +[X] svn repository + with datasheet pdfs ? [ ] wire correctly for power on reset + test with dodgy power on curve (slow power up) -[ ] blog post -[ ] README in SVN +[X] blog post +[X] README in SVN + + this file +[ ] Add 4th digit to sleep timer [ ] test with WRT54 [ ] add brown out detector to PIC reset to be double sure? + see PIC data sheet [ ] check what happens in overvoltage on input, how can we protect? [ ] document test plan +[ ] get PIC part name right in symbol file [X] make sure we can't stall in RS232 input routine + need a way to get around this..... + malformed RS323 could cause a hang @@ -177,3 +194,5 @@ TODO List [ ] work out how to run from 60V + 78L05 pops at 35V +[ ] Will 5V levels from PIC play nicely with 3V3 levels of router - +check data sheets! diff --git a/wispcar/sym/PC12F510.sym b/wispcar/sym/PC12F510.sym index f33ada5a..7198d934 100644 --- a/wispcar/sym/PC12F510.sym +++ b/wispcar/sym/PC12F510.sym @@ -49,7 +49,7 @@ numslots=0 P 1800 1600 1500 1600 1 0 0 { T 1600 1650 5 8 1 1 0 0 1 -pinnumber=1 +pinnumber=8 T 1450 1550 5 8 1 1 0 6 1 pinlabel=GND T 2100 1700 5 8 0 1 0 8 1 @@ -58,7 +58,7 @@ pintype=pwr P 1800 400 1500 400 1 0 0 { T 1600 450 5 8 1 1 0 0 1 -pinnumber=4 +pinnumber=5 T 1450 350 5 8 1 1 0 6 1 pinlabel=GP2 T 2000 450 5 8 0 1 0 8 1 @@ -67,7 +67,7 @@ pintype=io P 1800 800 1500 800 1 0 0 { T 1600 850 5 8 1 1 0 0 1 -pinnumber=3 +pinnumber=6 T 1450 750 5 8 1 1 0 6 1 pinlabel=GP1 T 2000 950 5 8 0 1 0 8 1 @@ -76,7 +76,7 @@ pintype=io P 1800 1200 1500 1200 1 0 0 { T 1600 1250 5 8 1 1 0 0 1 -pinnumber=2 +pinnumber=7 T 1450 1150 5 8 1 1 0 6 1 pinlabel=GP0 T 2050 1300 5 8 0 1 0 8 1 diff --git a/wispcar/wispcar_sch.pdf b/wispcar/wispcar_sch.pdf index bfd68892..9678b641 100644 Binary files a/wispcar/wispcar_sch.pdf and b/wispcar/wispcar_sch.pdf differ