Examples for USCALE

Date: Jan 10, 2008
Author: Andreas Jansen
Description:

/*========================================================================
USCALE BLINKY
# - toggle P1.5 in T2 interrupt routine
========================================================================*/

/*========================================================================
USCALE UART
# - reply a received byte within UART-ISR and toggle P1.5
# UART 
  - at 9600 baud 
  - interrupt enabled
========================================================================*/

/*========================================================================
USCALE ADC
# - measure pulldevice-switching edge with CH2 and print to UART
# ADC
  - continues conversion on CH2 (sequential queued conv. with refill)
  - 8bit / 1.3 us conversion time
# UART 
  - at 115.2  kbaud 
# Ports
  - switch pullup and pulldown device of P2.2 (CH2) alternating
========================================================================*/

/*========================================================================
USCALE CC6 
# - capture variable PWM and print captured value to UART
--> connect P3.1--P3.7 externally (leftmost pins on upper/lower rows)

_________________________|-------|__________________________
|(15)	(13)	(11)	(9)	(7)	(5)	(3)	(1)|
|P2|2	P21	P16	P20	P35	P33	P36	+5V|
|P25	P24	CAN0H	P23	 -	 - 	 - 	 - |
|P37	P26      -	P27	 -	 - 	 -	 - |
 -|--------------------------------------------------------
|P31	P34	P17	CAN1H	P32	P30	CAN1L	GND|
| -	 -	CAN0L	 -	 -	 -	 -	 - |	
|(16)	(14)	(12)	(10)	(8)	(6)	(4)	(2)|
___________________________________________________________

# CC6
  - T13 compare output on P3.7
  - T12 capture input on P3.1 
# CC61R interrupt (rising edge on P3.1) 
 - read capture 
 - print result to UART
# UART interrupt
 - 115.2 kbaud 
 - interrupt transmit handler
========================================================================*/

/*========================================================================
USC_CAN: 
# - CAN loopback example 
# - Optionally nodes 0 and 1 can be connected externally
  - Ping-pong sending/recieving MOs
# CAN
 - node 0 and node 1 in loopback mode
 - node0 / MO01-TRX / ID7 / SRN0
 - node0 / MO00-REC / ID5 / SRN1
 - node1 / MO16-TRX / ID5 / SRN3
 - node1 / MO17-REC / ID7 / SRN4
 - baudrate 100kbaud
 - XINTR5INT, XINTR6INT, XINTR9INT, XINTR10INT  
 - interrupt service routine: SHARED_INT.c
# UART
- 9600baud, compiler define "FULL" will use printf
# Ext Oscillator
- enabled in startup file
========================================================================*/

/*========================================================================
USC_EEPROM: 
# - Write & Erase DFLASH using polling method and FlashHandler routines
# - DataSet size is one WL
# - Print modified DFLASH to UART
Use MTTY@9600 baud or another terminal program
MTTY can be found on CD folder \tools\6_Monitor\MTTY
========================================================================*/

/*========================================================================
USC_U2CAN: 
under construction --- please watch update on www.infineon.com\uscale
========================================================================*/

