Page 1
It is your responsibility to ensure that your application meets with your specifications. No representation or warranty is given and no liability is assumed by Cytron Technologies Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Cytron Technologies’s products as critical components in life support systems is not authorized except with express written...
5.3 UART Interface 5.4 USB Interface 5.4.1 SK40C USB 5.4.2 SK40C HID USB Bootloader 6. Getting Started 6.1 I/O Port (to electronic components) 6.2 UART 6.3 USB 7. Warranty Appendix A (schematic) Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Product User’s Manual – SK40C 1. INTRODUCTION AND OVERVIEW SK40C is another enhanced version of 40 pins PIC microcontroller start up kit. It is designed to offer an easy to start board for PIC MCU user. However, all interface and program should be developed by user.
Page 4
This kit comes WITHOUT PIC microcontroller to provide the freedom for user to choose PIC type. This document explains the method to use SK40C. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
ROBOT . HEAD to TOE Product User’s Manual – SK40C 3. BOARD LAYOUT a) Top View Pin 1 of PIC b) Side view Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 7
This function is only valid for certain model of PIC microcontroller. Please refer to USB interface section. The power LED will light ON when the USB cable is connected. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 8
G – Consist of several line of header pin and turn pin. Header pin provide connector for user to solder SK40C to prototype board and use the I/O of PIC MCU. It is fully compatible between SK40B. Turn pin offer simple way to check voltage with multi-meter probe. 40 pins of PIC MCU except OSC (connected to crystal) are extended out to these pin.
Page 9
ROBOT . HEAD to TOE Product User’s Manual – SK40C O – Turn pin is provided for crystal. 20M Hz is default crystal provided in SK40C. However, the 20M Hz crystal can be removed and replace with other crystal. Just remove the crystal and put other crystal on turn pin without soldering.
Page 10
Product User’s Manual – SK40C Figure below shown pin connection for ‘Label H’ (UART). Name Pin function Connection Transmit Data TX pin of UART Receive Data RX pin of UART Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
ROBOT . HEAD to TOE Product User’s Manual – SK40C 4. PRODUCT SPECIFICATION SK40C is designed to offer starting up platform for development, the specification of PIC MCU used should be referred. Absolute Maximum Rating Symbol Parameter Unit Operating voltage...
ROBOT . HEAD to TOE Product User’s Manual – SK40C 5. INSTALLATION (HARDWARE) SK40C come with UIC00A ICSP USB programmer connector to offer simple way for downloading program.UIC00A ICSP programmer is very easy and save plenty of development time. 5.1 Loading Program Using UIC00A Programmer Connect SK40C as shown in following figure.
Page 13
After plug in 40 pin PIC MCU (make sure the orientation is correct), SK40C should be powered by DC adaptor. Now, the hex code is ready to be loaded to SK40C. For the usage of UIC00A, please refer to UIC00A User’s Manual.
I/O of the microcontroller can be access through few methods: Connect the components that needed onto the I/O port. b. Extend the I/O port to another board using jumper wire. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 15
Plug the I/O pins of the Start-up Kit onto a breadboard. Then, access I/O pin through the breadboard. d. 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...
Page 16
The 2x16 character LCD offer character display for a embedded system. It can be used to display numerical information, text message and also special symbol. 2 x 16 LCD Display is not included in SK40C packaging list. User may buy separately. Please refer chapter 6.1 “Getting Started for To use the LCD, user has to solder 16 header pin to the LCD.
Page 17
Besides that may also use header pin and mini jumper to short LCD B/L. Header pin and mini jumper is not provided in SK40C packing list. Users need to buy separately. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 18
LCD B/L Potential meter is used to adjust the contrast of LCD Display. Turn left or right to adjust the contrast. Adjust the potential meter for different contrast of LCD. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Product User’s Manual – SK40C 5.3 UART Interface UART is provided in SK40C for communication to microcontroller or computer. Users need to solder 2510-04 connector by your own to use UART. 2510-04 connector is not included on SK40C packaging list. Please refer Chapter 6.2 “Getting Started for UART” for example source code.
Page 20
ROBOT . HEAD to TOE Product User’s Manual – SK40C Below is shown some examples connection of SK40C to microcontroller using UART. (a) SK40C to SD02B using UART (b) SK40C to SC16A using UART Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 21
ROBOT . HEAD to TOE Product User’s Manual – SK40C Connect to computer/laptop using UC00A (communication between SK40C and PC) Connect to computer or laptop. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
5.4.1 SK40C USB USB data pins (pin 23, D- and pin 24, D+) were connected to a mini USB port on SK40C board for USB development use. So far, Microchip has only 5 USB 8-bit microcontrollers in 40-pin PDIP package such as PIC18F4450, PIC18F4455, PIC18F4550, PIC18F4458 and PIC18F4553.
Page 23
Product User’s Manual – SK40C This section will show hardware installation for USB. Connect USB mini cable to SK40C USB connector. Connect the other end of USB mini cable to PC USB port. Make sure PIC used is support USB program.
Cytron Technologies has provided the SK40C HID USB Bootloader firmware (edited form MCHPFSUSB Framework). This firmware is currently configured to work with the PIC18F4550 using the CYTRON SK40C. However, user still can use this code for other USB microcontroller after doing some project modification. User just loads the given appropriate hex file to PIC by using the programmer (UIC00A).
Product User’s Manual – SK40C 6. GETTING STARTED SK40C is ready to be plug and use, no extra driver or software is necessary. It is a hardware platform, please install the necessary driver or configure the correct setting in window.
Page 26
3. Load hex code (LED_Blink.hex) into 40 pin PIC MCU using UIC00A/B. 4. LED1 and LED2 are blinking. 5. LCD Display will display “Cytron Tech.” at 1 line and “SK40C” at 2 line. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
UC00A is a USB to UART converter which can be used for UART communication between SK40B and Computer/Laptop. Please refer UC00A User’s Manual for details. We have provided a sample source for UART communication between SK40C and Computer. This sample source is provided for PIC 16F.
Page 28
Connect to PC using USB mini cable 3. Load hex code (UART_PC.hex) into 40 pin PIC MCU using UIC00A/B. 4. Connect UC00A to SK40C and Computer. Connect to PC USB port Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 29
Product User’s Manual – SK40C 5. Setup HyperTerminal. This setup only valid for UART communication with computer using UC00A. It’s not valid for USB at SK40C. Open HyperTerminal. Enter a name and choose an icon for connection as picture below then click OK.
Page 30
7. Please follow step (8) to (10) if the COM port number is not confirm. 8. Go to Start, right click on My Computer and choose Properties. 9. At System Properties, choose Hardware and click on Device Manager. Device Manager will pop up. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 31
COM port for UC00A disappears when we unplug UC00A and appear when we plug 11. 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.
Page 32
ROBOT . HEAD to TOE Product User’s Manual – SK40C 12. Click Properties button. ‘SK40C’ Properties will show. Choose Setting tab and click ASCII Setup. Click on Echo typed characters locally and then click OK. Echo typed characters is to display on HyperTerminal what is pressed on keyboard. User may click or unclick Echo typed characters.
Page 33
ROBOT . HEAD to TOE Product User’s Manual – SK40C 13. After all settings are complete, user may now check the functionality of SK40C UART. Below show massage displayed in HyperTerminal if our sample source code used. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 34
UART pin of SK40C (PIC16F877A) is connecting to UART pin 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.
Page 35
ROBOT . HEAD to TOE Product User’s Manual – SK40C 2. Sample source code is provided to show UART communication between SK40C and microcontroller (SKPS). User may download the source the source code in Cytron website under product page. 3. Load the hex code (UART_SKPS) into PIC MCU.
This section is shown example source code for LED Blinking using USB bootloader. User may download the sample source code in Cytron website. The sample hex file is valid for PIC18F4550 only. For non- PIC18F4550, user need to change the device and rebuild the project to regenerate the new hex file.
Page 37
5. After USB bootloader firm was loaded into PIC, unplug the UIC00A/B programmer. For boot mode, press and hold the SW2 then connect the mini USB port on SK40C board to your PC then release the SW2. Another way to activate the boot mode is pressing and holds the SW2 then press RESET button without unplug the USB cable.
Page 38
Cytron website under “Useful Document” of SK40C. 8. And this window will pop out and click “Open Hex File” 9. Search “SK40C 18F_USB Sample Program” folder which users have download from website. They are 3 sample programs which are LCD Display, LED Blinking and UART.
Page 39
ROBOT . HEAD to TOE Product User’s Manual – SK40C 10. Select the given hex file “SK40C sample code (bootloader).hex” folder and click open. Note that the original sample hex file, “SK40C sample code (bootloader).hex” is for PIC18F4550. 11. Click “Program/Verify” to load hex file to your PIC and programming status will be shown as below.
Page 40
12. User need to do some modification for other USB PIC. Change the device by clicking Configuration>>Select Device as shown below. 13. Choose decided PIC let say PIC18F4553 then click “OK”. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 41
15. Right click the linker file under Linker Script folder and remove it. 16. Right click the Linker Script folder then click “Add Files” Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 42
18. Lastly, do not forget to change the include file before rebuild it. User is free to edit the sample program. 19. Make sure the linker file and the selected device is correct. Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Page 43
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...
Warranty does not cover freight cost for both ways. Prepared by Cytron Technologies Sdn. Bhd. 19, Jalan Kebudayaan 1A, Taman Universiti, 81300 Skudai, Johor, Malaysia. Tel: +607-521 3178 Fax: +607-521 1861 URL: www.cytron.com.my Email: support@cytron.com.my sales@cytron.com.my Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved...
Need help?
Do you have a question about the SK40C and is the answer not in the manual?
Questions and answers