Examples for USCALE 

Date: May 7, 2007
Author: Andreas Jansen
Description:

General Settings for USCALE:
- use external OSC with 6MHZ, IMODE=1, push-pop RMAP within ISR

USC0: Simple blinky example, 
	# - toggle P1.5 in T2 interrupt routine

USC1: Using USCALE extension board (JP1: pot or cap):
	# - read in potentionmeter on P2.2 (USCALE.9)
	  - print result to UART (115.2kbaud)
	# - generate sawtooth with CC6 (R-D-C filter on P3.5/P3.4), 
	  - read in with ADC (ch2)
	  - print result to UART (115.2kbaud)
	  - T12PM interrupt in SHARED_INT.C
	  - ADC single channel continues conversion in MAIN.C

USC2: CAN transmit and receive example
	# - example USC1 on 2 USCALEs and ping-pong
	  - USCALE 1: 	transmit ADC value on 	Node1 / MO1-TRX / ID7 / SRN3
	  - 		receive on 		Node1 / MO0-REC / ID5 / SRN1
	  - 		error on		Node1 / SRN4
	  - USCALE 2:  	transmit ADC value on 	Node1 / MO1-TRX / ID5 / SRN3
	  - 		receive on 		Node1 / MO0-REC / ID7 / SRN1
	  - 		error on		Node1 / SRN4
	  - print received MO to UART
	  - CAN: Node1, 100kbaud, 3 interrupts for transmit, receive and error
	  - use CAN_Handler.C instead of Dave's Shared_int.C


USC3: CAN loopback example (internal and external)
	# - Use uscale to evaluate the external loopbackmode
	  - Optionally nodes 0 and 1 can be connected
	  - Ping-pong sending/recieving MOs
	  - Node0 / MO01-TRX / ID7 / SRN0
	  - Node0 / MO00-REC / ID5 / SRN1
	  - Node1 / MO16-TRX / ID5 / SRN3
	  - Node1 / MO17-REC / ID7 / SRN4

USC4: CAN FIFO example
	- build real CAN network with several USCALES 
	- send and transmit messages (SMS-like) from PC > USCALE > CAN
	- dynamic send / receive ID configuration thru UART
	- using FIFO structure of MultiCAN module
	- Node1 / MO_00-15 - TRX / dest ID / SRN0
	- Node1 / MO_16-31 - RXD / own  ID / SRN1


USC5: CAN Gateway example
	- use one USCALE as gateway
	- use USC2 or USC4 as sender/receiver

USC6: CAN BSL example
	- program an XC888 starterkit thru CAN





**********************************************************
***                      USCALE                        ***
Connector for USCALE / USCALE_EXT1
________________________|-------|__________________________
(15)	(13)	CAN0H	(9)	(7)	(5)	(3)	(1)
(16)	(14)	CAN0L	CAN1H	(8)	(6)	CAN1L	GND
___________________________________________________________	



**********************************************************
***                     SKIT888                        ***
Connector for SKIT888
_____________
|     3D     |
-------------
| (1)	 (2) |
|CAN0L	CAN0H|
| GND	 (6) |