PIC-LCD-3310 development board
Users Manual
Rev.B, January 2011
Copyright(c) 2011, OLIMEX Ltd, All rights reserved
Page 1
INTRODUCTION:
PIC-LCD-3310 is development board with PIC18F67J50, NOKIA 3310 BW 84x48
pixels LCD, two LEDs and a joystick. The board has SD-MMC connector, mini USM
and all PIC ports are available on two extension connectors. The board have 3-axis
accelerometer MMA7260 (seen on the picture). It's perfect for motion datalogging/analyze, 3-d mouses etc application.
BOARD FEATURES:
−
−
−
−
−
−
−
−
−
−
−
−
MCU: PIC18F67J50 with 128KB Flash memory, 3904B SRAM, 10-bit 8-channel
ADC module, PWM, SPI, I2C, EUSART, 2 Analog comparators and 8/16-bit
Timer/Counters
ICSP connector for PIC-ICD2/PIC-ICD2-POCKET debugger/programmer or
PIC-PGx programmers
LCD NOKIA 3310 black/white 84x48 pixels
Two status LEDs
Joystick with LEFT, RIGHT, UP, DOWN and CENTER action
mini USB connector
SD/MMC card connector
MMA7260 accelerometer
Extension connectors for all PIC ports
+(4.5–6.0) battery connector
PCB: FR-4, 1.5 mm (0,062''), soldermask, silkscreen component print
Dimensions 65x65 mm (2.56 x 2.56")
ELECTROSTATIC WARNING:
The PIC-LCD3310 board is shipped in protective anti-static packaging. The board
must not be subject to high electrostatic potentials. General practice for working
with static sensitive devices should be applied when working with this board.
BOARD USE REQUIREMENTS:
Cables:
1.8 meter USB mini cable to connect to PC. Other cables might be
required in case of other programming/debugging tools.
Hardware:
Programmer/Debugger – PIC-ICD2, PIC-ICD2-POCKET orother
compatible programming/debugging tool.
!!!Warning!!! When you want to program this microcontroller with PIC-ICD2, PICICD2-POCKET or PIC-ICD2-TINY, before connecting the
programmer to your target board, you should first connect the
programmer to your computer and open MPLAB. There, first from
menu Configure – Select Device – choose the microcontroller you are
about to program, then from menu Programmer – Select Programmer
Page 2
– choose MPLAB ICD 2, wait while MPLAB is downloading
operation system, and after ICD2 is connected – check in menu
Programmer – Settings – Power – there is option – Power target
circuit from MPLAB ICD 2 – this option should be forbidden, you
could not select it. Now it is safe to connect the programmer to your
target board.
Software:
MPLAB IDE (latest version), MPLAB C18 Compiler or any other
compatible development/programming software.
Page 3
PROCESSOR FEATURES:
PIC-LCD3310 board use MCU PIC18F67J50 from Microchip with these features:
- USB V2.0 Compliant SIE
- Low Speed (1.5 Mb/s) and Full Speed (12 Mb/s)
- Supports Control, Interrupt, Isochronous and
Bulk Transfers
- Supports up to 32 Endpoints (16 bidirectional)
- Supports up to 32 Endpoints (16 bidirectional)
- 3.9-Kbyte Dual Access RAM for USB
- On-Chip USB Transceiver
- High-Precision PLL for USB
- Two External Clock modes, up to 48 MHz
- Internal 31 kHz Oscillator, Tunable Internal
Oscillator, 31 kHz to 8 MHz
- Secondary Oscillator using Timer1 @ 32 kHz
- Fail-Safe Clock Monitor:
o Allows for safe shutdown if any clock stops
- High-Current Sink/Source 25 mA/25mA
(PORTB and PORTC)
- Four Programmable External Interrupts
- Four Input Change Interrupts
- Two Capture/Compare/PWM (CCP) modules
- Three Enhanced Capture/Compare/PWM (ECCP)
modules:
o One, two or four PWM outputs
o Selectable polarity
o Programmable dead time
o Auto-shutdown and auto-restart
- Two Master Synchronous Serial Port (MSSP)
modules supporting 3-Wire SPI (all 4 modes) and
I2C. Master and Slave modes
- 8-Bit Parallel Master Port/Enhanced Parallel
Slave Port with 16 Address Lines
- Dual Analog Comparators with Input Multiplexing
- 10-Bit, up to 12-Channel Analog-to-Digital (A/D)
Converter module:
o Auto-acquisition capability
o Conversion available during Sleep
- Two Enhanced USART modules:
o Supports RS-485, RS-232 and LIN 1.2
o Auto-wake-up on Start bit
o Auto-Baud Detect
- Address Capability of up to 2 Mbytes
- 8-Bit or 16-Bit Interface
- 12-Bit, 16-Bit and 20-Bit Addressing modes
- 5.5V Tolerant Inputs (digital-only pins)
- Low-Power, High-Speed CMOS Flash Technology
- C Compiler Optimized Architecture for
Re-Entrant Code
- Power Management Features:
o Run: CPU on, peripherals on
Page 4
o Idle: CPU off, peripherals on
o Sleep: CPU off, peripherals off
- Priority Levels for Interrupts
- Self-Programmable under Software Control
- 8 x 8 Single-Cycle Hardware Multiplier
- Extended Watchdog Timer (WDT):
o Programmable period from 4 ms to 131s
- Single-Supply In-Circuit Serial Programming.
(ICSP™) via Two Pins
- In-Circuit Debug (ICD) with 3 Breakpoints via
Two Pins
- Operating Voltage Range of 2.0V to 3.6V
- On-Chip 2.5V Regulator
- Flash Program Memory of 10000 Erase/Write
Cycles and 20-Year Data Retention
Page 5
BLOCK DIAGRAM:
Page 6
MEMORY MAP:
Page 7
100nF
100nF
Page 8
CON6PR6-2.54MM
3.3V
RB7/PGD
RB6/PGC
RG4/PMCS2/CCP5/P1D
RG3/PMCS1/CCP4/P3D
RG2/PMA6/RX2/DT2
RG1/PMA7/TX2/CK2
RG0/PMA8/ECCP3/P3A
PIC18F67J50LPTQFP64
RB0/FLT0/INT0
RB1/INT1/PMA4
RB2/INT2/PMA3
RB3/INT3/PMA2
RB4/KBI0/PMA1
RB5/KBI1/PMA0
RB6/KBI2/PGC
RB7/KBI3/PGD
RF2/PMA5/AN7/C2INB
RF3/DRF4/D+
RF5/AN10/C1INB/CVREF
RF6/AN11/C1INA
RF7/#SS1/C1OUT
D/#C
#SS1
RG 4
RG 3
RG 2
RG 1
RG 0
8
6
5
4
3
RF 2
DD+
RF5
16
15
14
13
12
11
MIS O 1
R31
3.3V
BH10
C13
NA
NA
R28
NA
C12
R27
NA
2
4
6
R29
8 330R/5%
10
100nF
UEXT
C11
1
RC6/T X 1
3
S CK 2/S CL2 5
330R/5%
7
S CK 1
9
R25
4.7k/5%
3.3V
R16
330R/5%
3.3V 3.3V
C14
RC7/RX 1
MIS O 2/S DA 2
MO S I1
RE 4/CS _UE X T
R2
4.7k/5%
R1
33k/5%
3.3V
1uF
C15
3.3V_E
3.3V
47uF/6.3V
1x15
EXT2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
+
RST
48
47
46
45
44
43
42
37
CE NTE R
LE F T
RB 2
RB 3
UP
DO W N
RB 6/P G C
RB 7/P G D
RA0/AN0
RA1/AN1
RA2/AN2/VREFRA3/AN3/VREF+
RA4/T0CKI
RA5/AN4/C2INA
R18
330R/5%
LED2
red
RC2
RC6/TX 1
RC7/RX 1
RE 2/LE D1
RE 3/LE D2
RE 4/CS _UE X T
US B _S E NS
RE 6
RE 7
RF2
RF5
SD-CARD
CP1
CP2
3
UP
2
NOKIA_3310_LCD
UP
#RES
VDD
SCK
SDIN
D/#C
#SCE
GND
VOUT
#RES
LCD
GND
VOUT
VIN
1
2
RIGHT
5
3
7.1
BAT
R33
100k/5%
R32
100k/5%
US B _S E NS
DD+
(4.5-6.0)V
1
2
D1
BAT54C
R35
180k/5%
R34
100k/5%
+5V
330R/5%
R19
RIGHT
http://www.olimex.com/dev
COPYRIGHT(C) 2009, OLIMEX Ltd.
Rev. A
PIC-LCD3310
B A T _S E NS
1uF
C16
VR1
MCP1702-3302E/MB
Center push
DOWN
Common
JOYSTICK_IT-1502
4
6
DOWN
1 LEFT
CENTER
LEFT
3.3V 3.3V
+
1
2
3
4
5
6
7
8
3.3V 3.3V 3.3V
J1
1uF/16V
C18
100nF
SCK1
MOSI1
D/#C
#SS1
R9
33k/5%
VBUS
DD+
ID
GND
10nF
C17
GND3
1
2
3
4
5
6
24
23
22
21
28
27
Z
Y
X
RA 3
RIG HT
B A T_S E NS
10uF/10V
RE 2/LE D1
RE 3/LE D2
RE 4/CS _UE X T
US B _S E NS
RE 6
RE 7
WP
CP
2
1
64
63
62
61
60
59
LED1
red
3.3V
+5V
3.3V
13
15
C19
R26
33k/5%
3.3V
USB
ICSP
100nF
RE0/PMRD/P2D
RE1/PMWR/P2C
RE2/PMBE/P2B
RE3/PMA13/P3C/REFO
RE4/PMA12/P3B
RE5/PMA11/P1C
RE6/PMA10/P1B
RE7/PMA9/ECCP2/P2A
#SM
GS1
GS2
#RES
MOSI2
MISO2/SDA2
SCK2/SCL2
#SS2
58
55
54
53
52
51
50
49
RC6/TX 1
RC7/RX 1
SCK1
MISO1
MOSI1
C26
15pF
C27
15pF
330R/5%
33k/5%
33k/5%
CP
33k/5%
2k/5%
CD/DAT3/CS
CMD/DI
VSS1
VDD
CLK/SCLK
VSS2
DAT0/DO
DAT1/RES
DAT2/RES
3.3V
MINI_USB
USB
GND4
GND2
GND1
1x15
3.3V
AVDD
AVSS
VSS
VSS1
VSS2
VSS3
Q2
32768/6pF
RC2
GND
R5
R6
R30
R8
R7
1
2
3
4
5
6
7
8
9
WP1
WP2
SD/MMC
1
+5V
RA 3
B A T_S E NS
RB 2
RB 3
RB 6/P G C
RB 7/P G D
RG 0
RG 1
RG 2
RG 3
RG 4
RS T
19
20
25
41
56
9
VDD
VDD1
VDD2
RD0/PMD0
RD1/PMD1
RD2/PMD2
RD3/PMD3
RD4/PMD4/SDO2
RD5/PMD5/SDI2/SDA2
RD6/PMD6/SCK2/SCL2
RD7/PMD7/#SS2
30
29
33
34
35
36
31
32
3.3V
3.3V
3.3V
MISO2/SDA2
SCK2/SCL2
#SS2
MOSI2
10
14
2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
100nF
26
38
57
VDDCORE/VCAP
VUSB
OSC2/CLKO/RA6
OSC1/CLKI/RA7
ENVREG
RC0/T1OSO/T13CKI
RC1/T1OSI/ECCP2/P2A
RC2/ECCP1/P1A
RC3/SCK1/SCL1
RC4/SDI1/SDA1
RC5/SDO1/C2OUT
RC6/TX1/CK1
RC7/RX1/DT1
C20
47uF/6.3V
470nH
L1
WP
33k/5%
2k/5%
R20
C10
100nF
100nF
C8
10
17
40
39
#MCLR
U3
C21
100nF
3.3V
R3
R4
R21
33k/5%
C9
C7
C6
10uF/10V
C5
100nF
C4
7
18
100nF
X
R15
1k/5%
3.3V
R14
33k/5%
R22
33k/5%
3.3V
3.3V
15pF
C3
Q1
20MHz
RST
15pF
1k/5%
3.3V
100nF
C22
Y
Z
C23
R13
1k/5%
R12
1k/5%
+
C2
5
6
7
8
9
10
11
16
R10
33k/5%
R23
100nF
R17
3.3V
MMA7260Q
VSS
VDD
NC1
NC2
NC3
NC4
NC5
NC6
NC7
NC8
XOUT
YOUT
ZOUT
15
14
13
3.3V
33k/5%
R24
33k/5%
C1
R11
10k
4
#SM
G-SEL1
G-SEL2
3.3V
33k/5%
EXT1
C24
C25
3
12
#SM
3.3V
1
2
GS1
GS2
U2
SCHEMATIC:
BOARD LAYOUT:
POWER SUPPLY CIRCUIT:
PIC-LCD-3310 takes power from a battery +(4.5-6)VDC or from the mini USB port.
The board power consumption at 5-6VDC the consumption is about 20mA.
RESET CIRCUIT:
PIC-LCD-3310 doesn't have reset circuit. The MCU resets if you apply logical zero
(GND) to EXT1.pin 15 or to ICSP.pin 1.
CLOCK CIRCUIT:
Quartz crystal 20 MHz is connected to PIC18F67J50 pin 39
(OSC1/CLKI/RA7) and pin 40 clock out (OSC2/CLKO/RA6).
Page 9
clock in
Quartz crystal 32.768 kHz is connected to PIC18F67J50 pin 29
(RC1/T1OSI/ECCP2/P2A) and pin 30 (RC0/T1OSO/T13CKI) and supplies the
Timer1 which could function as a Real Time Clock.
JUMPER DESCRIPTION:
3.3V_E
enables 3.3 V power supply for the PIC18F67J50 and all other devices.
Default state is closed.
INPUT/OUTPUT:
Status red LED with name LED1 connected to PIC18F67J50 pin 64
(RE2/PMBE/P2B).
Status red LED with name LED2 connected to PIC18F67J50 pin 63
(RE3/PMA13/P3C/REFO).
Joystick with name J1 and with five positions – left, right, up, down and center.
Accelerometer MMA7260.
NOKIA-LCD 3310.
EXTERNAL CONNECTORS DESCRIPTION:
ICSP:
Pin #
PGD I/O
PGC Input
for the
Signal Name
1
RST
2
+3.3V
3
GND
4
RB7/PGD
5
RB6/PGC
6
NC
Program Data. Serial data for programming.
Program Clock. Clock used for transferring the serial data (output from ICSP, input
MCU).
Page 10
EXT1:
Pin #
Signal Name
Pin #
Signal Name
1
+3.3V
2
GND
3
+5V
4
RA3
5
BAT_SENS
6
RB2
7
RB3
8
RB6/PGC
9
RB7/PGD
10
RG0
11
RG1
12
RG2
13
RG3
14
RG4
15
RST
BAT_SENS
Input
battery.
PGD
I/O
PGC
Input
input for the MCU).
Battery Power Supply. This signal tells the processor that it is powered by the
Program Data. Serial data for programming.
Program Clock. Clock used for transferring the serial data (output from ICSP,
Page 11
EXT2:
Pin #
TX1
RX1
LED1
LED2
USB_SENS
through the
Signal Name
Pin #
Signal Name
1
+3.3V
2
GND
3
+5V
4
GND
5
RC2
6
RC6/TX1
7
RC7/RX1
8
RE2/LED1
9
RE3/LED2
10
RE4/CS_UEXT
11
USB_SENS
12
RE6
13
RE7
14
RF2
15
RF5
Output
Input
Input
Input
Input
Transmit Data 1. This is the output data line for the UART1.
Receive Data 1. This is the input data line for the UART1.
This signal controls LED1.
This signal controls LED2.
USB power supply. This signal tells the processor that it receives power
mini USB port.
Page 12
UEXT:
Pin #
Signal Name
1
+3.3V
2
GND
3
RC6/TX1
4
RC7/RX1
5
SCK2/SCL2
6
MISO2/SDA2
7
MISO1
8
MOSI1
9
SCK1
10
RE4/CS_UEXT
TX1
Output
Transmit Data 1. This is the output data line for the UART1.
RX1
Input
Receive Data 1. This is the input data line for the UART1.
SCK2/SCL2 I/O
Serial (Synchronization) Clock 2. This is the synchronization clock for the
data transfer. When the pin is used for communication through SPI2, the name of the signal is
SCK2 and when the communication is through is through I2C, the name of the signal is SCL2.
This could be either input or output depending on whether the MCU is master or slave.
MISO2/SDA2 I/O
Master In Slave Out 2/Serial Data 2. When this pin is used for
communication through SPI2 interface, its name is MISO and if the communication is through I2C
interface its name is SDA. In case of SPI this could be either input (MCU is master) or output (MCU is
slave). In case of I2C this could be used as both input and output depending on the data flow
direction.
MOSI1
I/O
Master Out Slave In 1. This pin could be used for communication through
SPI1 interface, in which case this is either data output from the MCU (when it is master) or data input
for the MCU (when it is slave).
SCK1
I/O Serial (Synchronization) Clock 1. This is the synchronization clock for the data
transfer. If this pin is used for communication through SPI1, it could be either input or output
depending on whether the MCU is master or slave.
Page 13
BAT:
Pin #
Signal Name
1
+(4.5-6.0)VDC
2
GND
Mini USB:
Pin #
Signal Name
1
+5V
2
D-
3
D+
4
NC
5
GND
D- and D+ both form differential input or output depending on the direction of the
data flow.
Page 14
SD/MMC card slot:
Pin #
Signal Name
Pin #
Signal Name
1
#SS2
2
MOSI2
3
GND
4
VDD (+3.3V)
5
SCK2/SCL2
6
GND
7
MISO2/SDA2
8
+3.3V
9
+3.3V
10
WP
11
-
12
-
13
CP
14
GND
15
GND
#SS2
Output Slave Select 2. This signal is Slave Select for the SPI2 interface. As the MSU is
master, this signal is output from it.
MOSI2
Output Master Out Slave In 2. When the access to the memory is via SPI2 interface,
this is data output from the MCU (which is master) and input for the memory card (which is slave).
SCK2/SCL2 Output Serial (Synchronization) Clock 2. This is the synchronization clock for the
data transfer. When the access to the memory card is via SPI2, the name of the signal is SCK2 and
when the access is via I2C, the name of the signal is SCL2.
MISO2/SDA2 I/O
Master In Slave Out 2/Serial Data 2. When the access to the memory card is
via SPI2 interface, this is data input for the MCU(which is master) and data output from the memory
card (which is slave). If the access to the memory card is via I2C this is both data input and output to
the MCU.
WP
Input
Write Protect. This signal is input for the MCU.
CP
Input
Card Present. This signal is input for the MCU.
MECHANICAL DIMENSIONS:
Page 15
Page 16
AVAILABLE DEMO SOFTWARE:
–
–
Test demo code (C source and HEX)
GPS compass with MOD-GPS and PIC-LCD3310 (C source and HEX)
You could find information about PIC-LCD-3310 demo software at
www.olimex.com/dev.
Page 17
ORDER CODE:
PIC-LCD-3310 – assembled and tested (no kit, no soldering required)
How to order?
You can order to us directly or by any of our distributors.
Check our web www.olimex.com/dev for more info.
All boards produced by Olimex are RoHS compliant
Revision history:
REV.A
REV. B
- created
July 2008
- created
January 2011 – added more detailed mechanical
dimensions, latest revision of the scheme and page number.
Page 18
Disclaimer:
© 2011 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered
trademarks of Olimex Ltd. Other terms and product names may be trademarks of others.
The information in this document is provided in connection with Olimex products. No license, express
or implied or otherwise, to any intellectual property right is granted by this document or in
connection with the sale of Olimex products.
Neither the whole nor any part of the information contained in or the product described in this
document may be adapted or reproduced in any material from except with the prior written
permission of the copyright holder.
The product described in this document is subject to continuous development and improvements. All
particulars of the product and its use contained in this document are given by OLIMEX in good faith.
However all warranties implied or expressed including but not limited to implied warranties of
merchantability or fitness for purpose are excluded.
This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not
be liable for any loss or damage arising from the use of any information in this document or any error
or omission in such information or any incorrect use of the product.
Page 19