Cytron SK40C User manual

SK40C
ENHANCED 40 PINS PIC START-UP KIT
User’s Manual
V1.2
Dec 2010
Information contained in this publication regarding device applications and the like is intended through suggestion only and may
be superseded by updates. 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
approval by Cytron Technologies. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
1
Index
1. Introduction and Overview 2
2. Packing List 4
3. Board Layout 5
4. Product Specification 10
5. Installation (hardware) 11
5.1 Loading Program Using UIC00A Programmer 11
5.2 I/O Port (to electronic components) 13
5.3 UART Interface 18
5.4 USB Interface 21
5.4.1 SK40C USB 21
5.4.2 SK40C HID USB Bootloader 23
6. Getting Started 24
6.1 I/O Port (to electronic components) 24
6.2 UART 26
6.3 USB 35
7. Warranty 43
Appendix A (schematic) 44

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
2
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. This board comes with basic element for user to begin project
development. It offer plug and use features. This kit is designed to offer:
•
Industrial grade PCB
•
Every board is being fully tested before shipped to customer
•
Compact, powerful, flexible and robust start-up platform
•
Suitable for hobbyists and experts
•
Save development and soldering time
•
No extra components required for the PIC to function
•
All 33 I/O pins are nicely labeled to avoid miss-connection by users
•
Connector for UIC00A (low cost USB ICSP PIC Programmer) - simple and fast
method to load program
•
Fully compatible with SK40B
•
No more frustrated work plugging PIC out and back for re-programming
•
Perfectly fit for 40 pins 16F and PIC18F PIC
•
With UIC00A, program can be loaded in less than 5 seconds
•
More convenient to use and it is smaller than SK40B.
•
Maximum current is 0.5A.
•
Dimension: 85mm x 55mm
SK40C come with additional features:
•
2 x Programmable switch
•
2 x LED indicator
•
Turn pin for crystal. User may use others crystal provided.
•
LCD display (optional)
•
UART communication
•
USB on board.
•
And all the necessities to eliminate users difficulty in using PIC

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
3
Users are able to utilize the function of PIC by directly plugging in the I/O components in
whatever way that is convenient to user. With UIC00A connector on board, user can start
developing projects and have fun with this kit right away. This kit comes WITHOUT PIC
microcontroller to provide the freedom for user to choose PIC type.
This document explains the method to use SK40C.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
4
2. PACKING LIST
Please check the parts and components according to the packing list. If there are any parts
missing, please contact us at sales@cytron.com.my immediately.
1. 1 x SK40C board with all components shown soldered
2. 1 x 16 Header pin for LCD Display.
3. 1 x 20M Hz Crystal
4. PIC MCU – Not included, please purchase separately from Cytron website
5. USB Cable – Not included, please purchase separately from Cytron website
6. UIC00A – Not included, please purchase separately from Cytron website
7. User Manual – Not included, please download from Cytron website

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
5
3. BOARD LAYOUT
a) Top View
b) Side view
B
A
C
E
D
F
G
I
H
J
K
Pin 1
of PIC
L
M
N
O
P

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
6
c) Bottom view
A– DC power adaptor socket for user to plug in DC adaptor. The input voltage should be
ranged from 7 to 15V.
B– USB connector for communication between devices and a host controller (usually
personal computers). 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.
Label
Function Label Function
A DC power adaptor socket I Programmable Push Button
B USB Connector J Reset button
C Toggle Switch for power supply K LCD contrast
D Power indicator LED L JP8 for LCD Backlight
E Connector for UIC00A
Programmer M JP9 for USB
F LED Indicator N 40 pin IC socket for PIC MCU
G Header pin and turn pin O Turn pin for crystal
H UART Connector P LCD Display

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
7
C– Toggle switch to On/Off the power supply from DC adaptor.
D– Power indicator LED for on board. It will light ON as long as the input power is correctly
connected.
E– 2x5 box header for UIC00A, USB ICSP PIC Programmer.
F– 2 LEDs (connected to RB6 and RB7) as active High output for PIC MCU. These LEDs
are controllable from PIC MCU.
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. There is an
extra pin on top of MCLR which is labeled as Vin, is connected to the input power.
H– Reserved for UART communication. Tx and Rx pin of SK40C are connect to RC6 and
RC7 respectively. Ensure PIC use have the correct UART pin (RC6 and RC7).
I– 2 x Push button connected to RB0 and RB1 of PIC MCU. This is extra input button for
user. It can be programmed as input switch.
J – Push button with the function of Reset for PIC MCU.
K – 5K of trimmer to set LCD contrast.
L– JP8 is provided for LCD Backlight. LCD Display will have backlight if this pin is
shorted.
M– JP9 is provided for USB. Connect this pin if users use USB port
N– 40 pin IC socket for user to plug in any 40 pin PIC MCU (8 bit). It can either be 16F or
18F PIC. Of course the IC package should be PDIP. Please ensure the first pin is at the top
side. Inside IC socket, there some electronics components, it include a 20MHz Crystal.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
8
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.
P – Reserved for 2 x 16 LCD Display. User may solder 2x16 LCD display at this space if
want to use it.
Figure below shown pin connection for ‘Label P’ (2x16 LCD Display).
Pin
Name Pin function Connection
1 GND Ground GND
2 VDD Positive supply for LCD 5V
3 Con Brightness adjust Connected to a preset to adjust
brightness
4 RB4 Select register, select instruction or data
register Pin RS of LCD
5 GND Ground GND
6 RB5 Start data read or write Pin E of LCD
7 RD0 LCD Data bus 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
Figure below shown pin connection for ‘Label O’ (Turn pin for crystal).
Figure below shown pin connection for ‘Label I’ (Push button).
Pin Name Pin function Connection
RA6 OSC2 Crystal Turn pin (JP7)
RA7 OSC1 Crystal Turn pin (JP7)
Pin Name Pin function Connection
RB0 SW1 Digital Input ‘SW1’ SWITCH
RB1 SW2 Digital Input ‘SW2’ SWITCH

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
9
Figure below shown pin connection for ‘Label H’ (UART).
Pin Name Pin function Connection
RC6 TX Transmit Data TX pin of UART
RC7 RX Receive Data RX pin of UART

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
10
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 Min Max Unit
V
CC
Operating voltage 7 15 V
I
max
Maximum input current - 0.5 A
SK40C come with additional features:
•
2 x Programmable switch
•
2 x LED indicator
•
Turn pin for crystal. User may use others crystal.
•
LCD display (optional)
•
UART communication
•
USB on board.
•
And all the necessities to eliminate users difficulty in using PIC
Note: Only 1 power supply should be provided to SK40C.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
11
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.
Connect to PC using
USB mini cable

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
12
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.
RB7 and RB6 have been connected to UIC00A connector and 2 LED indicators. User is
advice not to use these pin as input. Even when using as output, RB7 or RB6 pin are
recommended to be used in controlling non critical device such as LED, LCD, 7 segments or
buzzer. It is recommended to isolated ICSP signals from application circuit by using series
resistor (range 220 ohm and above). Furthermore, NO capacitance component (capacitor)
should be connected to these 2 pins. Please refer to UIC00A User’s Manual for further
details.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
13
5.2 I/O Port (to electronic components)
Please refer “Getting Started” at Chapter 6.1 for LED Blinking and LCD example source
code. I/O of the microcontroller can be access through few methods:
a. Connect the components that needed onto the I/O port.
b. Extend the I/O port to another board using jumper wire.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
14
c. 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.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
15
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.
Solder LCD display at the reserved place. To get the LCD backlight (optional), solder JP8
to connect the LCD B/L.
LCD B/L is connected for
LCD backlight.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
16
Below shows the different between LCD with backlight and LCD without backlight.
a) With backlight
b) Without backlight
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.
JP8 is connect
JP8 is not connect

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
17
Potential meter is used to adjust the contrast of LCD Display. Turn left or right to adjust
the contrast.
Solder header pin
at JP8
Put mini jumper to
short LCD B/L
Adjust the potential meter for
different contrast of LCD.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
18
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.
Solder 2510-04 connector at UART reserved place.
Connect to other microcontroller using cable connector.

ROBOT . HEAD to TOE
Product User’s Manual – SK40C
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
19
Below is shown some examples connection of SK40C to microcontroller using UART.
(a) SK40C to SD02B using UART
(b) SK40C to SC16A using UART
Table of contents
Other Cytron Microcontroller manuals
Popular Microcontroller manuals by other brands

Murphy
Murphy MURPHYMATIC ASM170 Installation and operation instructions

Cypress
Cypress EZ-USB AT2LP CY4615B quick start guide

Intrinsyc
Intrinsyc LANTRONIX Open-Q 820 user guide

Lamina
Lamina Atlas NT-4000 White Developer Kit Series manual

Renesas
Renesas RL78G14 Application note

Texas Instruments
Texas Instruments OPT3002EVM Operation manual