+ All Categories
Home > Documents > ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53...

ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53...

Date post: 22-Jan-2021
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
12
ET- PIC STAMP 18F8722 -1- ET-PIC STAMP 18F8722 ET-PIC STAMP 18F8722 is a small Board Microcontroller that uses 80-Pin TQFP Microcontroller No.PIC18F8722 from Microchip and then arrange them together into the compact board. It uses resources of its Microcontroller mainly. Additionally, it designs ICD2 Port for programming, so it can connect with external programmer such as Programmer “ET-PGM PIC USB”. Table shows specifications of Microcontroller PIC18F8722. Specifications PIC18F8722 Operating Frequency DC – 40 MHz Program Memory (Bytes) 128K Data Memory (Bytes) 3936 Data EEPROM Memory (Bytes) 1024 Interrupt Sources 29 I/O Ports Ports A, B, C, D, E, F, G, H, J Timers 5 Capture/Compare/PWM Modules 2 Enhanced Capture/Compare/ PWM Modules 3 Enhanced USART 2 Serial Communications MSSP, Enhanced USART Parallel Communications (PSP) Yes 10-bit Analog-to-Digital Module 16 Input Channels Resets (and Delays) POR, BOR,RESET Instruction, Stack Full, Stack Underflow (PWRT, OST), MCLR (optional), WDT Programmable High/Low-Voltage Detect Yes Programmable Brown-out Reset Yes Instruction Set 75 Instructions; 83 with Extended Instruction Set enabled Packages 80-pin TQFP
Transcript
Page 1: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-1-

ET-PIC STAMP 18F8722

ET-PIC STAMP 18F8722 is a small Board Microcontroller

that uses 80-Pin TQFP Microcontroller No.PIC18F8722 from Microchip and then arrange them together into the compact board. It uses resources of its Microcontroller mainly. Additionally, it designs ICD2 Port for programming, so it can connect with external programmer such as Programmer “ET-PGM PIC USB”. Table shows specifications of Microcontroller PIC18F8722.

Specifications PIC18F8722

Operating Frequency DC – 40 MHz

Program Memory (Bytes) 128K

Data Memory (Bytes) 3936

Data EEPROM Memory (Bytes) 1024

Interrupt Sources 29

I/O Ports Ports A, B, C, D, E,

F, G, H, J

Timers 5

Capture/Compare/PWM Modules 2

Enhanced Capture/Compare/

PWM Modules

3

Enhanced USART 2

Serial Communications MSSP,

Enhanced USART

Parallel Communications (PSP) Yes

10-bit Analog-to-Digital Module 16 Input Channels

Resets (and Delays) POR, BOR,RESET Instruction,

Stack Full, Stack

Underflow (PWRT, OST),

MCLR (optional), WDT

Programmable High/Low-Voltage Detect Yes

Programmable Brown-out Reset Yes

Instruction Set 75 Instructions;

83 with Extended

Instruction Set enabled

Packages 80-pin TQFP

Page 2: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-2-

Specifications of Board - Use 80 PIN Microcontroller No.PIC18F8722 - Signal Clock Oscillator 10 MHz; can use x4 from PLL to

be 40 MHz

- 2 Port Driver RS232 Circuit - ICD2 Port Download to support external Programmer ET-

PGMPIC USB - Connector +5V and GND

Structure of Board ET-PIC STAMP 18F8722

Page 3: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-3-

Details

• No.1 is the second Channel of Connector Port RS232.

• No.2 is Connector 2 Pin VDC power supply input is shown in the picture below.

• No.3 is the first Channel of Connector Port RS232.

• No.4 is Jumper to select the connection type between Signal I/O Pins; RC6/Tx and RC7/Rx with Driver 3232 Circuit.

Page 4: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-4-

Figure displays the connection of Jumper RS232 / I/O.

• No.5 is Microcontroller PIC18F8722.

• No.6 is Switch Mode RUN/PGM. When switch is shifted to PGM Mode, it will ON/OFF signal PIN for programming code data that is designed by self into programmer and when switch is shifted back to RUN Mode, Pins will be back to be normal I/O operation.

• No.7 is RESET Switch. • No.8 is Connector Program and its pins are arranged

follow ICD2 Standard. It can connect with programmers that are the same standard as ICD2 such as Programmer “ET-PGM PIC USB” from ETT.

Page 5: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-5-

• No.9 is LED to display statuses as follows;

- PWR displays status of Power Supply.

- PGM displays status of Programming Mode.

- RUN displays status of Running Mode. How to program Source Code (Code Programming)

The method to program Source Code into Microcontroller of Board ET-PIC STAMP 18F8722 must use external Programmer such as ICD2, PICKit2 or Programmer ET-PGM PIC USB from ETT. It must connect Cable Program into Connector ICD2 as shown in the picture bellow. Please read more applications from User’s Manual of your Programmer for more information.

ET-PGMPIC USB

ET- PIC STAMP 18F8722

Page 6: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-6-

How to download Program with Programmer “ET-PGM PIC USB

1. Must install Program .NET Framework (dotnetfx) first and then follow by Program PICKit2Setup as below.

2. Connect cable between Programmer ET-PGM PIC USB and ET-PIC STAMP 18F8722 through Port ICD2 and then supply +5VDC Power into Board ET-PIC STAMP 18F8722.

3. Connect USB Cable from ET-PGM PIC USB with Port USB of

computer.

Page 7: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-7-

B T

4. Set Jumper T/B on Board ET-PGM PIC USB to be B position.

5. Press Switch Mode on Board ET-PIC STAMP 18F8722 to be PGM Mode, it makes LED of PGM on.

6. Open Program PICKit2 by double click Icon PICKit2.

7. Program PICKit2 will check IC Microcontroller; if it is number that is supported by PICKit2 and its connection is correct, it will display the found number of PIC Micro in the Device as shown in the picture below.

Page 8: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-8-

*** If program can not find any Microcontroller that is connected, we recommend user to follow this instruction; click Menu Device Family -> PIC18F as shown in the picture below.

8. Delete old data in PIC Micro first, click Button Erase and we will see all data in Program Memory and EEPROM Data will be FF value.

9. Import Hex File as desired, click Menu File -> Import Hex.

Page 9: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-9-

10. We will see data in Program Memory and EEPROM Data will be changed follows the downloaded Hex File.

11. Click Button Write to write program Hex File into

memory of PIC Micro.

12. Click Button Verify, if we want to check the right of the written data in PIC Micro.

If we have selected Enable Code Protect, it makes Verify process failure because Code Program is protected from reading, so we can not use Verify process in this step.

Page 10: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-10-

Problems and Solutions Problem

The mistake of connection cable between computer and Board ET-PGM PIC USB, it will display Error Message as shown in the picture below.

Solution - Check USB Cable connection between computer and Board

ET-PGM PIC USB. - Click Tools -> Check Communication to check its

connection again.

Problem

The mistake of checking Voltage at Target Board, it will display Error Message as shown in picture below.

Solution - Check Jumper T/B that must be in the B position and

then check power supply of Target Board. If user does not supply power into Target Board, must supply power into it completely.

Page 11: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

ET- PIC STAMP 18F8722

-11-

Problem It can not find any Microcontroller.

Solution - Check position of IC in Text Tool and Pin 1 of IC

must be in the right position. - If programming with Module Emulator, please check the

cable connection and then check voltage at Target Board.

Problem

There’s no any Configuration in Hex File that is imported, this problem occurs in the step of design and compile program.

Solution - Set Configuration in the step of design and compile

program.

Page 12: ET-PIC STAMP 18F8722 Eng - Michigan State University...RB2/INT2 56 RB3/INT3 55 RB4 54 RB5/PGM 53 RB6/PGC 52 RB7/PGD 47 RC2 43 RC3 44 RC4 45 RC5 46 RC6/TX1 37 RC7/RX1 38 RA0/AN0 30

1 2 3 4

A

B

C

D

4321

D

C

B

A Title

Number RevisionSize

A4

Date: 14-Jun-2007 Sheet of File: C:\ETT_PCB\ET-PIC STAMP 18F8722.DdbDrawn By:

RA1/AN129

RA2/AN228

RA3/AN327

RA4/T0CKI34

RA5/AN433

RB0/INT058

RB1/INT157

RB2/INT256

RB3/INT355

RB454

RB5/PGM53

RB6/PGC52

RB7/PGD47

RC243

RC344

RC445

RC546

RC6/TX137

RC7/RX138

RA0/AN030

RD072

RD169

RD268

RD367

RD466

RD565

RD664

RD763

RE04

RE13

RE278

RE377

RE476

RE575

RE674

RE773

RC0/T1OSO36

RC1/T1OSI35

OSC1/CLKI/RA7 49

OSC2/CLKO/RA6 50

RF7 13RF6/AN11 14RF5/AN10 15RF4/AN9 16RF3/AN8 17RF2/AN7 18RF1/AN6 23RF0/AN5 24

RG0 5

RG1/TX2 6

RG2/RX2 7

RG3 8

RG4 10

RG5/MCLR 9

RH0 79

RH1 80

RH2 1

RH3 2

RH4/AN12 22

RH5/AN13 21

RH6/AN14 20

RH7/AN15 19

RJ0 62

RJ1 61

RJ2 60

RJ3 59

RJ4 39

RJ5 40

RJ6 41

RJ7 42

VDD 12

AVDD 25

VDD 32

VDD 48

VDD 71

VSS 11

AVSS 26

VSS 31

VSS 51

VSS 70

U1PIC18F8722

12345678910111213141516171819202122232425262728293031323334

HD2

HEADER_34

12345678910111213141516171819202122232425262728293031323334

HD1

HEADER_34

X16MHz

C1

22pF

C2

22pF

C4100n

C5100n

C6100n

C7100n

C8100n

+5V

RA0RA1RA2RA3RA4RA5

RB0RB1RB2RB3RB4RB5PGCPGD

RC2RC3RC4RC5TX1RX1

RD0RD1RD2RD3RD4RD5RD6RD7

RE0RE1RE2RE3RE4RE5RE6RE7

RC0

RC1

RJ7RJ6RJ5RJ4RJ3RJ2RJ1RJ0

RH7RH6RH5RH4RH3RH2RH1RH0

RF0RF1RF2RF3RF4RF5RF6RF7

RG0TX2RX2RG3RG4

MCLR

RG0RG3RG4MCLR

RE0RE1RE2RE3RE4RE5RE6RE7

RH0RH1RH2RH3RH4RH5RH6RH7

RJ0RJ1RJ2RJ3RJ4RJ5RJ6RJ7

RA0RA1RA2

RC5RC4RC3RC2RC1RC0

RB7RB6RB5RB4RB3RB2RB1RB0RD7RD6RD5RD4RD3RD2RD1RD0

RF7RF6RF5RF4RF3RF2RF1RF0

RA5RA4RA3

123456

CN1ICD2

ZD15.6V/1W

C1510uFC9

100n

C3100n

R3470

R110K

LED1PWR

+5V

C1+ 1

C1- 3

C2+ 4

C2- 5

R1O 12

T1I 11

R2O 9

T2I 10

VCC16

V+2

V-6

GND15

R1I13

T1O14

R2I8

T2O7

U2ICL3232

1234

CN3RS232-CH2

1234

CN2RS232-CH1

+5V

+5V

C10100n

+5V

C11100n

C12100n

C13100n

C14100n

+5V

+5V

JP1JP2

RX1TX1

RC7RC6

RX2TX2

+5V

+5V

RC6RC7

1

32

4

65

7

98

10

1211

SW1MODE

PGC

PGD

MCLR

RB6

RB7

LED2

PGM

LED3

RUN

+5V

R2

470

SW2RESET

12

CN4

POWER

+5V

ET-PIC STAMP 18F8722


Recommended