Table of Contents
1Getting Started ...................................................................................................................................9
1.1 What Are The ShieldBuddy TC275 Tools?..........................................................................................9
1.2 Getting Started With The TC275 Toolchain.........................................................................................9
1.3 Using The ShieldBuddy TC275..........................................................................................................10
1.4 Using The Eclipse IDE .......................................................................................................................10
1.5 Debugging Programs Using Eclipse PLS UDE Debug Perspective ..................................................12
1.6 Getting Help .......................................................................................................................................16
2ShieldBuddy TC275 Extensions To The Arduino IDE .................................................................17
2.1 How is the ShieldBuddy Different To Other Arduinos?......................................................................17
2.2 TC275 Processor Architecture...........................................................................................................17
2.3 Serial Ports.........................................................................................................................................19
2.4 Multicore Programming Extensions ...................................................................................................19
2.4.1 Arduino IDE Extensions .....................................................................................................................19
2.4.2 Inter-Core Communications ...............................................................................................................20
2.4.2.1 Inter-Core Communications Example................................................................................................20
2.4.2.2 Using Interrupts To Coordinate and Communicate Between Cores..................................................22
2.4.3 Timers/Ticks/delay(), millis(), micros() Etc.........................................................................................23
2.4.3.1 Core 1.................................................................................................................................................24
2.4.3.2 Core 2.................................................................................................................................................24
2.4.3.3 Direct Fast Access To The System Timer0 .......................................................................................24
2.4.4 Managing the Multicore Memory Map................................................................................................25
2.5 Peripheral And IO Extensions............................................................................................................27
2.5.1 Faster digitalRead & digitalWrite........................................................................................................27
2.5.2 attachInterrupt() Function...................................................................................................................27
2.5.3 Enabling and Disabling Interrupts......................................................................................................27
2.5.4 ADC Read Resolution........................................................................................................................27
2.5.5 Fast ADC Conversions.......................................................................................................................28
2.5.6 analogWrite() & AnalogOut ................................................................................................................29
2.5.6.1 PWM Frequency.................................................................................................................................29
2.5.6.2 Custom PWM Frequencies ................................................................................................................29
2.5.6.3 Fast Update Of AnalogOut() Function ...............................................................................................29
2.5.6.4 DAC0 and DAC1 pins ........................................................................................................................29
2.6 CAN....................................................................................................................................................30
2.6.1 CAN Functions Usage........................................................................................................................30
2.6.1.1 Receiving any message regardless of message ID...........................................................................31
2.7 I2C/Wire Pins & Baudrate ..................................................................................................................32
2.8 EEPROM Support..............................................................................................................................33
2.9 Resetting The ShieldBuddy................................................................................................................33
2.10 SPI Support........................................................................................................................................33
2.10.1 Default Spi..........................................................................................................................................33
2.10.2 Spi Channel 1.....................................................................................................................................34
2.10.3 Spi Channel 2.....................................................................................................................................34
2.11 Aurix DSP Function Library................................................................................................................35
2.12 Ethernet BootLoader/In Application Ethernet Flash Programmer......................................................35
2.12.1 Overview ............................................................................................................................................35
2.12.2 Setting The Network Addresses.........................................................................................................35
2.12.3 Configuring The SPI...........................................................................................................................36
2.13 Using The Bootloader ........................................................................................................................36
2.14 Sending Programs To The ShieldBuddy............................................................................................37
2.15 Tone() Functions................................................................................................................................37
2.16 PWM Measurement Functions...........................................................................................................37
2.16.1 Using The PWM Measurement Functions .........................................................................................38
2.17 General Purpose Timer Interrupts......................................................................................................39
3Hardware Release Notes HW Revision B ......................................................................................40
3.1ShieldBuddy RevB Known Problems.................................................................................................40