background image

 

ROBOT . HEAD to TOE 

                                                                  

Product User’s Manual –

SK40C Rev2.0

 

 

 

 

SK40C 

40 PINS PIC  

START-UP KIT 

 

 

 
 

 

User's Manual 

 

V2.0 

 

JUNE 2015 

 

 

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved

 

 

Summary of Contents for SK40C

Page 1: ...ROBOT HEAD to TOE Product User s Manual SK40C Rev2 0 SK40C 40 PINS PIC START UP KIT User s Manual V2 0 JUNE 2015 Created by Cytron Technologies Sdn Bhd All Rights Reserved 1 ...

Page 2: ...v2 0 INDEX 1 Introduction Overview 3 2 Packing List 4 3 Product Specification And Limitations 5 4 Dimension 6 5 Board Layout 7 6 Hardware 12 7 Software 23 8 Getting Started 28 9 Warranty 37 Created by Cytron Technologies Sdn Bhd All Rights Reserved 2 ...

Page 3: ... more frustration to plug PIC out and back for re programming Perfectly fit for 40 pins 16F and PIC18F PIC the 8 bit PIC With UIC00A B program can be loaded in less than 5 seconds More convenient to use and it is smaller than SK40B Maximum current of 5V voltage regulator is 0 5A Dimension 85mm x 55mm SK40C come with additional features 2 x Programmable switch 2 x LED indicator Turn pin for crystal...

Page 4: ...with all components shown soldered 2 1 x 16 way Header pin for LCD Display 3 1 x 20MHz Crystal 4 PIC MCU Not included please purchase separately from Cytron website 5 USB Mini B Cable Not included please purchase separately from Cytron website 6 UIC00A B Not included please purchase separately from Cytron website 7 User s Manual Not included please download from Cytron website Created by Cytron Te...

Page 5: ...from 5V voltage regulator 0 5 A SK40C comes with additional features of 2 x Programmable push button tactile 2 x Programmable LED indicator Turn pin for crystal User may use other crystal Parallel LCD pads optional 4 pin UART communication port USB Mini B receptor on board And all the necessities to eliminate user difficulty in using PIC microcontroller Note Only 1 power source should be provided ...

Page 6: ...ROBOT HEAD to TOE Product User s Manual SK40C Rev2 0 4 DIMENSION Created by Cytron Technologies Sdn Bhd All Rights Reserved 6 ...

Page 7: ...ROBOT HEAD to TOE Product User s Manual SK40C Rev2 0 5 BOARD LAYOUT Top View Bottom View Created by Cytron Technologies Sdn Bhd All Rights Reserved 7 ...

Page 8: ...IC MCU These LEDs are controllable from PIC MCU 5 Programmable Push Button 2 x Push button Tactile switch connected to RB0 and RB1 of PIC MCU This is extra input button for user It can be programmed as input switch 6 Reset Button Push button with the function of Reset for PIC MCU 7 40 Pin IC socket for PIC MCU 40 pin IC socket for user to plug in any 40 pin PIC MCU 8 bit and 5V operated It can eit...

Page 9: ...in on top of MCLR which is labeled as Vin is connected to the input power 13 Parallel LCD pads Reserved for 2 x 16 character parallel LCD User may solder 2x16 LCD at these pads if it is needed 14 DC power adaptor socket DC power adaptor socket for user to plug in DC adaptor The input voltage should within 7 to 15VDC 15 USB Connector A USB Mini B receptor USB connector for communication between dev...

Page 10: ...pin Pin D0 of LCD 8 RD1 LCD data bus pin Pin D1 of LCD 9 RD2 LCD data bus pin Pin D2 of LCD 10 RD3 LCD data bus pin Pin D3 of LCD 11 RD4 LCD data bus pin Pin D4 of LCD 12 RD5 LCD data bus pin Pin D5 of LCD 13 RD6 LCD data bus pin Pin D6 of LCD 14 RD7 LCD data bus pin Pin D7 of LCD 15 VDD Backlight positive input VDD 16 B L Backlight negative input Connect to JP8 Table below shows pin connection fo...

Page 11: ...RB0 SW1 Digital Input SW1 SWITCH RB1 SW2 Digital Input SW2 SWITCH Table below shows pin connection for UART Pin Name Pin Function Connection RC6 TX Transmit Data TX pin of SK40C UART RC7 RX Received Data RC pin of SK40C UART For detailed connection please refer to SK40C Rev2 0 Schematic Created by Cytron Technologies Sdn Bhd All Rights Reserved 11 ...

Page 12: ...please refer to UIC00A B User s Manual RB7 PGD and RB6 PGC are two pins that being used in ICSP program loading and have been connected to UIC00A B connector and 2 LED indicators User is advised not to use these pins as input because the input device may affect the ICSP process Even when using as output RB7 or RB6 pin is recommended to be used in controlling non critical device such as LED LCD 7 s...

Page 13: ...PICkit2 3 This is alternative way to load program besides using UIC00A B Below is some steps to load program using PICkit To use PICkit 3 as programmer user has to solder 1x6 way right angle header pin to JP10 Connect PICkit 3 at JP10 Ensure the arrow on SK40C is same with arrow at PICkit 3 Created by Cytron Technologies Sdn Bhd All Rights Reserved 13 ...

Page 14: ... of the microcontroller can be access through few methods Connect the components that needed onto the I O port Plug the I O pins of the Start up Kit onto a breadboard Then extend the I O port to Input Output device using jumper wires Created by Cytron Technologies Sdn Bhd All Rights Reserved 14 ...

Page 15: ...D to TOE Product User s Manual SK40C Rev2 0 Plug the I O pins of the Start up Kit onto a donut board Solder the pins onto the board to access the I O Created by Cytron Technologies Sdn Bhd All Rights Reserved 15 ...

Page 16: ...play numerical information text message and also special symbol 2 x 16 LCD is not included in SK40C packaging list User may purchase it separately Solder 16 way header pin to the LCD Solder LCD on to SK40C as shown To enable LCD backlight optional solder JP8 to connect the LCD B L Created by Cytron Technologies Sdn Bhd All Rights Reserved 16 ...

Page 17: ...ght a With backlight b Without backlight Beside user may also use header pin and mini jumper to connect LCD B L Solder header pin at JP8 and use mini jumper to connect LCD B L Header pin and mini jumper is not included in SK40C packing list Users need to buy separately Created by Cytron Technologies Sdn Bhd All Rights Reserved 17 ...

Page 18: ...OT HEAD to TOE Product User s Manual SK40C Rev2 0 Potentiometer is used to adjust the contrast of LCD Turn left or right to adjust the contrast Created by Cytron Technologies Sdn Bhd All Rights Reserved 18 ...

Page 19: ...ication to microcontroller or computer Users need to solder 2510 04 connector to utilize the UART 2510 04 connector is not included on SK40C packaging list Solder 2510 04 connector at UART as shown Connect to other microcontroller using cable connector Created by Cytron Technologies Sdn Bhd All Rights Reserved 19 ...

Page 20: ...ected to UART pins of SKPS Tx and Rx pin of SK40C should be cross connected to Tx and Rx pin of SKPS In other words Tx pin of SK40C should be connected to Rx pin of SKPS while Rx pin of SK40C should be connected to Tx pin of SKPS No extra component is necessary between these connections For details connection please refer to sample schematic Created by Cytron Technologies Sdn Bhd All Rights Reserv...

Page 21: ... UART pins of UC00A Tx and Rx pin of SK40C should be cross connected to Tx and Rx pin of UC00A In other words Tx pin of SK40C should be connected to Rx pin of UC00A while Rx pin of SK40C should be connected to Tx pin of UC00A No extra component is necessary between these connections For details connection please refer to sample schematic Created by Cytron Technologies Sdn Bhd All Rights Reserved 2...

Page 22: ...ll as a USB device driver for the PC which allows the PC to treat the microcontroller as a USB device Classes supported include HID CDC MSD and generic User can download MCHPFSUSB Framework Microchip Application Libraries from Cytron website under Useful Document of SK40C Unzip it and install it after finish download Microchip Solutions folder will be created at your C Drive All free framework and...

Page 23: ...al SK40C Rev2 0 Make sure your crystal frequency is 20MHz unless you change the configuration of the MCHPFSUSB Framework and jumper SEL USB is connected soldering as shown below Created by Cytron Technologies Sdn Bhd All Rights Reserved 23 ...

Page 24: ... other USB microcontroller after doing some project modification Loads the appropriate hex file to PIC by using the programmer UIC00A B Please be reminded that 8 bit PIC USB microcontrollers in 40 pin PDIP package include By the time we develop the example hex PIC18F4450 PIC18F4455 PIC18F4550 PIC18F4458 PIC18F4553 Cytron Technologies has provided all of PIC model USB Bootloader hex files inside th...

Page 25: ... This setup only valid for UART communication with computer using UC00A It s not valid for USB at SK40C 1 Open HyperTerminal Enter a name and choose an icon for connection as picture below then click OK 2 Select COM port Created by Cytron Technologies Sdn Bhd All Rights Reserved 25 ...

Page 26: ...perties 5 At System Properties choose Hardware and click on Device Manager Device Manager will pop up 6 At Device Manager choose COM LPT and USB Serial Port COM will be visible As an example shown in following figure COM Port for UC00A is COM34 The COM Port is not definitely same for each computer Usually the COM Created by Cytron Technologies Sdn Bhd All Rights Reserved 26 ...

Page 27: ...ug UC00A and plug in back The COM port for UC00A disappears when we unplug UC00A and appear when we plug in 7 Set the Port Setting as picture below Bits per seconds must be same with SK40C Baud Rate in programming After finish setting click Apply and then click OK Created by Cytron Technologies Sdn Bhd All Rights Reserved 27 ...

Page 28: ...ll show Choose Setting tab and click ASCII Setup Click on Echo typed characters locally and then click OK Echo typed characters locally is to display what is being typed on keyboard User may click or unclick Echo typed characters locally Created by Cytron Technologies Sdn Bhd All Rights Reserved 28 ...

Page 29: ...ion 6 1 3 LED1 and LED2 are blinking 4 LCD Display will display Cytron Tech on 1 st line and SK40C on 2 nd line 8 2 UART UART Universal Asynchronous Receiver Transmitter can be used to communicate between SK40C Computer Laptop SK40C Microcontroller UART to Computer Laptop UC00A is a USB to UART converter which can be used for UART communication between SK40C and Computer Laptop Please refer UC00A ...

Page 30: ...C 1 Please refer Section 6 4 UART Interface for example connection between SK40C and SKPS 2 Sample source code is provided to show UART communication between SK40C and microcontroller SKPS User may download the source code in Cytron website under product page 3 Connect Adaptor to SK40C DC Power Adaptor Socket Connect UIC00A B to ICSP programmer Switch on the power Load hex code UART_SKPS hex into ...

Page 31: ...C HID Bootloader Firmware as mentioned in Section 7 1 4 After USB bootloader firm was loaded into PIC unplug the UIC00A B programmer To enter bootloader mode press and hold SW2 then connect the mini USB port on SK40C board to your PC release SW2 Another way to activate the bootloader mode is to press and holds SW2 press and release RESET button without unplug the USB cable 5 SK40C has secondary po...

Page 32: ...as part of the OS The redistributables are currently 22 May 2008 available at Cytron website under Useful Document of SK40C 7 And this window will pop out and click Open Hex File 8 Search SK40C 18F_USB Sample Program folder which user has downloaded from website There are 3 sample programs which are LCD Display LED Blinking and UART Click on LED Blinking folder Created by Cytron Technologies Sdn B...

Page 33: ... file to your PIC and programming status will be shown as below Next click Reset Device to run your program LED1 and LED2 will blink like strobe on police car if SK40C sample code bootloader hex is loaded LEDs will stop blinking if either SW1 or SW2 button is being pressed 11 User need to do some modification for other USB PIC Change the device by clicking Configuration Select Device as shown belo...

Page 34: ...Rev2 0 12 Choose decided PIC let say PIC18F4553 then click OK 13 Edit the appropriate linker file User MUST use the given remapped linker files for the application if bootloader is used Created by Cytron Technologies Sdn Bhd All Rights Reserved 34 ...

Page 35: ...ct User s Manual SK40C Rev2 0 14 Right click the linker file under Linker Script folder and remove it 15 Right click the Linker Script folder then click Add Files Created by Cytron Technologies Sdn Bhd All Rights Reserved 35 ...

Page 36: ...the appropriate linker file All these linkers are special modified for USB bootloader 17 Lastly do not forget to change the include file before rebuild it User is free to edit the sample program 18 Make sure the linker file and the selected device is correct Created by Cytron Technologies Sdn Bhd All Rights Reserved 36 ...

Page 37: ... file will be generated and it will replace the old hex file in folder directory then load it into your PIC by using the Microchip USB HID Bootloader as mentioned from step 7 to step 10 in this section Make sure compiler used is C18 Compiler V3 32 or above Created by Cytron Technologies Sdn Bhd All Rights Reserved 37 ...

Page 38: ...der warranty Warranty does not cover freight cost for both ways Prepared by Cytron Technologies Sdn Bhd No 16 Jalan Industri Ringan Permatang Tinggi 2 Kawasan Industri Ringan Permatang Tinggi 14100 Simpang Ampat Penang Malaysia Tel 604 505 1878 Fax 604 504 0138 URL www cytron com my Email support cytron com my sales cytron com my Created by Cytron Technologies Sdn Bhd All Rights Reserved 38 ...

Reviews: