0% found this document useful (0 votes)
94 views68 pages

Uuprogs

The document provides an overview and user guide for a USB serial programmer device. It describes the device's supported microcontrollers, including Atmel, Microchip, Motorola/Freescale HC05, HC08 and HC11 families. Jumpers, connectors and programming procedures are explained.

Uploaded by

david.martim8612
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views68 pages

Uuprogs

The document provides an overview and user guide for a USB serial programmer device. It describes the device's supported microcontrollers, including Atmel, Microchip, Motorola/Freescale HC05, HC08 and HC11 families. Jumpers, connectors and programming procedures are explained.

Uploaded by

david.martim8612
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 68

Contents I

Table of Contents
Part I Overview 1

Part II User Guide 1


1 Hex Editor
................................................................................................................................... 1
2 Hex-Dec
...................................................................................................................................
Convertor 3
3 Keyboard
...................................................................................................................................
Shortcuts 3

Part III UUSP-S (UPA-USB Serial Programmer-S) 3


1 Supported
...................................................................................................................................
Devices 3
2 Jumpers
...................................................................................................................................
and Connectors Description 6
3 Atmel ...................................................................................................................................
8051, AVR 8-Bit Risk 7
4 Microchip
...................................................................................................................................
PICs 7
5 EEPROMs
................................................................................................................................... 8
I2C and SPI .......................................................................................................................................................... 8
Microwire .......................................................................................................................................................... 8
M35080 .......................................................................................................................................................... 9
SDA(E)2506 .......................................................................................................................................................... 9
6 Motorola/Freescale
...................................................................................................................................
HC05 10
.......................................................................................................................................................... 10
MC68HC05B PLCC52
..........................................................................................................................................................
MC68HC705B16 PLCC52 11
MC68HC05H12..........................................................................................................................................................
PLCC52 12
..........................................................................................................................................................
MC68HC05L28 PDIP56 13
..........................................................................................................................................................
MC68HC05X16/32 QFP64 14
MC68HC05K3 .......................................................................................................................................................... 15
7 Motorola/Freescale
...................................................................................................................................
HC08 16
.......................................................................................................................................................... 16
MC68HC(9)08 QFP64
MC68HC08AZ32..........................................................................................................................................................
QFP100 17
..........................................................................................................................................................
MC68HC08AS20 PLCC52 18
8 Motorola/Freescale
...................................................................................................................................
HC11 19
..........................................................................................................................................................
MC68HC11A8/E9 PLCC52 19
.......................................................................................................................................................... 20
MC68HC11E QFP64
.......................................................................................................................................................... 21
MC68HC11E SDIP56
MC68HC11EA9..........................................................................................................................................................
PLCC52 22
.......................................................................................................................................................... 23
MC68HC11F1 PLCC68
.......................................................................................................................................................... 24
MC68HC11K PLCC84
.......................................................................................................................................................... 25
MC68HC11K QFP80
..........................................................................................................................................................
MC68HC11KA2/4 PLCC68 26
..........................................................................................................................................................
MC68HC11KA2/4 QFP64 27
MC68HC11KG4..........................................................................................................................................................
QFP100 28
MC68HC11KS ..........................................................................................................................................................
PLCC68 29
.......................................................................................................................................................... 30
MC68HC11L6 PLCC68
.......................................................................................................................................................... 31
MC68HC11P2 PLCC84
MC68HC11PA8..........................................................................................................................................................
QFP64 32
MC68HC11PH8..........................................................................................................................................................
PLCC84 33
9 Motorola/Freescale
...................................................................................................................................
HC12 34

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu

I
II UPA-USB Device Programmer-S

..........................................................................................................................................................
MC68HC(9)12B32 QFP80 34
..........................................................................................................................................................
MC68HC(9)12D60(A) QFP80 35
..........................................................................................................................................................
MC68HC(9)12D60(A)/DG128(A) QFP112 36
10 Motorola/Freescale
...................................................................................................................................
HCS08 37
11 Motorola/Freescale
...................................................................................................................................
HCS12 38
..........................................................................................................................................................
MC9S12Dx64/128/256 QFP80 38
..........................................................................................................................................................
MC9S12Dx64/128/256 QFP112 39
..........................................................................................................................................................
MC9S12H(Z)128/256 QFP112 40
..........................................................................................................................................................
MC9S12XHZ128/256 QFP112 41
.......................................................................................................................................................... 42
MC9S12HY64 QFP100
12 Motorola/Freescale
...................................................................................................................................
MAC 43
.......................................................................................................................................................... 43
MAC7241/2 QFP100
13 Motorola/Freescale
...................................................................................................................................
MPC 44
.......................................................................................................................................................... 44
MPC5604P QFP100
14 STMicroelectronics
...................................................................................................................................
ST6 45
ST6240 QFP80.......................................................................................................................................................... 45
ST6245 QFP52.......................................................................................................................................................... 46
ST6249 QFP68.......................................................................................................................................................... 47
15 Infineon
...................................................................................................................................
XC2300 48
.......................................................................................................................................................... 48
XC2336B QFP64
..........................................................................................................................................................
XC236x QFP100 JTAG Default position 49
..........................................................................................................................................................
XC236X QFP100 JTAG position C 50
16 NEC/Renesas
................................................................................................................................... 51
17 78K0/HC912
...................................................................................................................................
Adapter 51
..........................................................................................................................................................
Jumpers and Connectors Description 52
.......................................................................................................................................................... 53
uPD780824/6/8A
uPD780973/4 .......................................................................................................................................................... 54
uPD780948/9 .......................................................................................................................................................... 55
.......................................................................................................................................................... 55
68HC912 QFP112
18 TMS Adapter
................................................................................................................................... 56
.......................................................................................................................................................... 56
Socket Description
..........................................................................................................................................................
Additional Adapter Schematics 57
.........................................................................................................................................................
TMS370cx36 Adapter Schematic 57
.........................................................................................................................................................
TMS370cx42 Adapter Schematic 58

Part IV Pascal Script Reference 58


1 Device
...................................................................................................................................
Management 58
AddAction .......................................................................................................................................................... 58
AddDevice .......................................................................................................................................................... 58
.......................................................................................................................................................... 58
AddDeviceGroup
.......................................................................................................................................................... 58
BlankCheckDevice
GetDevice .......................................................................................................................................................... 59
.......................................................................................................................................................... 59
HideDeviceOrGroup
.......................................................................................................................................................... 59
ProgramDevice
ReadDevice .......................................................................................................................................................... 59
.......................................................................................................................................................... 59
ShowDeviceOrGroup
VerifyDevice .......................................................................................................................................................... 59
2 File I/O
................................................................................................................................... 59
.......................................................................................................................................................... 59
AddOpenFileAction
OpenFile .......................................................................................................................................................... 59

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


Contents III

3 Hex Editor
................................................................................................................................... 59
.......................................................................................................................................................... 59
GetByteHexEdit
.......................................................................................................................................................... 59
GetSizeHexEdit
.......................................................................................................................................................... 60
RefreshHexEdit
.......................................................................................................................................................... 60
SelectAllMemoryRange
.......................................................................................................................................................... 60
SelectEEPROMRange
.......................................................................................................................................................... 60
SetByteHexEdit
.......................................................................................................................................................... 60
SetProgramModifiedOnly
.......................................................................................................................................................... 60
SetProgramRange
4 Message
...................................................................................................................................
and Input Boxes 60
AddMsg .......................................................................................................................................................... 60
ClearMsg .......................................................................................................................................................... 60
InBox .......................................................................................................................................................... 60
MsgBox .......................................................................................................................................................... 61
5 Miscellaneous
................................................................................................................................... 62
Application .......................................................................................................................................................... 62
InputForm .......................................................................................................................................................... 62
IntToHex .......................................................................................................................................................... 62
SetProductInfo.......................................................................................................................................................... 62
6 RemObjects
...................................................................................................................................
Pascal Script 62
Library .......................................................................................................................................................... 62
.......................................................................................................................................................... 63
Reserved words
Statements .......................................................................................................................................................... 64
Types .......................................................................................................................................................... 65

Index 0

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu

III
1 UPA-USB Device Programmer-S

1 Overview
Features

Hex Editor
Over write or insert mode
Support hexadecimal, decimal, octal and binary systems
File size up to 2GB (depends on the virtual memory of the computer)
Grouping bytes
Print the whole file or selected part of it
Unlimited Undo/Redo
Ajustable bytes per line
Fast searching/replacing hex or text data
Compare files
Font and colour options
Opening/Saving Intel Hex Format files
Opening Motorola S Record files
Swap even and odd bytes
Copy dump to clipboard
Copy part of a file to another file or to a text editor
Go to specified offset
Fill a selected part of the file in 0 or 255 (FFh)

2 User Guide
2.1 Hex Editor
The hexadecimal editor (HexEdit) allows customer to edited binary files, for programming a memory
or micro controller. Maximal size of the file is theoretical 2 GB, but actually depends on available
virtual memory of the computer. Editor works in overwriting or insert mode, switched by Insert key or
by the button Insert/Over located on the bottom of the window status bar. Hex Edit allows a few files
to be opened and various operations to be done with them. Hex Edit has 3 areas: offset, numerical
and text.

000000: 61 62 73 64 65 66 67 68 absdefgh
000008: 6A 6B 6C 6D 6E 6B 70 71 jklmnkpq

Status Bar
Status bar displays the offset of the pointer position from the beginning of the file, the current value
located at this offset and the size of the file. There are few buttons available:
Offset button - Toggles hexadecimal, decimal or octal representing of the offset
Data button - Toggles hexadecimal, decimal, octal or binary representing of the numbers
Size button - Toggles hexadecimal, decimal or octal representing of the file size
Find/Replace button - Show/Hide Find/Replace Bar
Monitor button - Show/Hide Data Monitor Bar
Two editing controls allows translating the pointer position at specified offset and data editing
(Press Enter in the end)
Find/Replace Bar
This bar allows searching/replacing of text or hexadecimal number forward or backward. Text
searching is not case sensitive. If a case sensitive searching is required, click Text button to convert
entered text to ASCII codes. Hexadecimal searching is always case sensitive.

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


User Guide 2

Monitor Bar
There are two buttons on the Monitor Bar. First one specifies the size of the number- 8, 16, 32 or 64
bits. The second button changes the order of the bytes - Intel (less signed byte first); Motorola
(most signed byte first). The number are displayed as unsigned integer, signed integer and a real
number
Working with Clipboard
Hex edit clipboard to copy numbers or text from one file to another one. It's possible copying from
UPA to a text editor (Notepad, Word). In this case, the caret position specifies the form of the
copied data.

The caret is located at number area


24 07 F0 71 7B 51 A1 66 -

The caret is located in the text area


$.рq{QЎf

A Dump can be copied by Edit/Copy as Text


005FF8: 036 007 240 113 123 081 161 102 $.рq{QЎf
006000: 000 034 161 120 000 036 161 004 ."Ўx.$Ў.
006008: 000 038 161 015 000 040 239 149 .&Ў..(п

It's possible to copy text from a text editor to UPA's hex editor
000000: 49 74 27 73 20 70 6F 73 It's pos
000008: 73 69 62 6C 65 20 74 6F sible to
000010: 20 63 6F 70 79 20 74 65 copy te
000018: 78 74 20 66 72 6F 6D 20 xt from
000020: 61 20 74 65 78 74 20 65 a text e
000028: 64 69 74 6F 72 20 74 6F ditor to
000030: 20 55 50 41 27 73 20 68 UPA's h
000038: 65 78 20 65 64 69 74 6F ex edito

Keyboard Shortcuts
Left, Right, Up, Down Moves the caret
End Moves the caret to the end of the line
Home Moves the caret to the start of the line
CTRL+End Moves caret to the end of the file
CTRL+Home Moves caret to the start of the file
Tab Toggles between hex and text area
PgDn Moves the caret down by one page
PgUp Moves the caret up by one page
Shift+Arrow keys, Home,End, Selects an area
PgDn, PgUp
Ins Toggles between Insert and Over write
modes
Ctrl+Ins, Ctrl+C Copy
Shift+Ins, Ctrl+V Paste
Ctrl+X Cut
Backspace, Del Delete
Ctrl+Z Undo
Ctrl+Y Redo

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


3 UPA-USB Device Programmer-S

2.2 Hex-Dec Convertor


Using this option the customer converts numbers from hexadecimal to decimal system and opposite.
The type of the number can be choose by a button (on the second line)

2.3 Keyboard Shortcuts


Hex Editor
Left, Right, Up, Down Moves the caret
End Moves the caret to the end of the line
Home Moves the caret to the start of the line
CTRL+End Moves caret to the end of the file
CTRL+Home Moves caret to the start of the file
Tab Toggles between hex and text area
PgDn Moves the caret down by one page
PgUp Moves the caret up by one page
Shift+Arrow keys, Home,End, Selects an area
PgDn, PgUp
Ins Toggles between Insert and Over write
modes
Ctrl+Ins, Ctrl+C Copy
Shift+Ins, Ctrl+V Paste
Ctrl+X Cut
Backspace, Del Delete
Ctrl+Z Undo
Ctrl+Y Redo

3 UUSP-S (UPA-USB Serial Programmer-S)


3.1 Supported Devices

Supported Devices (Please visit http://elrasoft.com/uusps.htm for full list of supported devices)
Renesas RL78: R5F100LEx, R5F10DGDx, R5F10DLDx, R5F10DMEx, R5F10CMEx, R5F10DPJx
NXP S12ZVH: MC9S12ZVHL32, MC9S12ZVHY32, MC9S12ZVHL64, MC9S12ZVHY64,
MC9S12ZVH64, MC9S12ZVH128
NXP S12VR: MC9S12VR16, MC9S12VR32, MC9S12VR48, MC9S12VR64
Renesas RH850: R7F701002x, R7F701003x, R7F701006x, R7F701007x, R7F701008x,
R7F701009x, R7F701010x, R7F701011x, R7F701012x, R7F701013x, R7F701014x, R7F701015x,
R7F701016x, R7F701017x, R7F701018x, R7F701019x, R7F701020x, R7F701021x, R7F701022x,
R7F701023x, R7F701024x, R7F701025x, R7F701028x, R7F701029x, R7F701030x, R7F701032x,
R7F701033x, R7F701034x, R7F701040x, R7F701041x, R7F701042x, R7F701043x, R7F701044x,
R7F701045x, R7F701046x, R7F701047x, R7F701048x, R7F701049x, R7F701050x, R7F701051x,
R7F701052x, R7F701053x, R7F701054x, R7F701055x, R7F701056x, R7F701057x, R7F7010623,
R7F7010643, R7F7010673, R7F7010713, R7F701330, R7F701401, R7F701402, R7F701403,
R7F701A033, R7F701A223, R7F701A313
Renesas/NEC R8C: R5F212DC, R5F21344P, R5F21344R, R5F21346P, R5F21346R,
R5F21346W, R5F21347W, R5F21348W, R5F2134AW, R5F2134CW, R5F21546E, R5F21546F,

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 4

R5F21546G, R5F21546H, R5F21547E, R5F21547F, R5F21547G, R5F21547H, R5F21548E,


R5F21548F, R5F21548G, R5F21548H, R5F2154AE, R5F2154AF, R5F2154AG, R5F2154AH,
R5F2154CE, R5F2154CF, R5F2154CG, R5F2154CH
Cypress/Fujitsu: MB90F351, MB90F352, MB90F357, MB90F438, MB90F439, MB90F543,
MB90F546, MB90F548, MB90F549, MB90F598, MB90F897, MB90F952, MB91F058, MB91F060,
MB91F061, MB91F062, MB91F067, MB91F223, MB91F224, MB91F248, MB91F249, MB91F233/L,
MB91F463C, MB91F362, MB91F365, MB91F366, MB91F367, MB91F368, MB91F369, MB91F464,
MB91F465,MB91F467B, MB91F467C, MB91F467D, MB91F467S, MB91F522, MB91F523,
MB91F524, MB91F525, MB91F526,MB91F575, MB91F577, MB91F578, MB91F579, MB91F591,
MB91F592, MB91F594, MB91F596, MB91F597, MB91F599, MB96F348x, MB96F348H,
MB96F385, MB96F386, MB96F387, MB96F612, MB96F613, MB96F615, MB96F673, MB96F675,
MB96F683, MB96F685, MB96F693, MB96F695, MB96F696, MB96F6A5, MB96F6A6
Renesas/NEC V850: uPD70F3237, uPD70F3276, uPD70F3333, uPD70F3334, uPD70F3335,
uPD70F3336, uPD70F3340, uPD70F3341, uPD70F3342, uPD70F3343, uPD70F3344,
uPD70F3345, uPD70F3346, uPD70F3347, uPD70F3348, uPD70F3350, uPD70F3351,
uPD70F3352, uPD70F3353, uPD70F3354, uPD70F3355, uPD70F3356, uPD70F3357,
uPD70F3358, uPD70F3364, uPD70F3365, uPD70F3366, uPD70F3367, uPD70F3368,
uPD70F3370A, uPD70F3371, uPD70F3372, uPD70F3373, uPD70F3374, uPD70F3375,
uPD70F3376A, uPD70F3377A, uPD70F3378, uPD70F3379, uPD70F3380, uPD70F3381,
uPD70F3382, uPD70F3383, uPD70F3384, uPD70F3385, uPD70F3421, uPD70F3422,
uPD70F3423, uPD70F3424, uPD70F3425, uPD70F3426A, uPD70F3427, uPD70F3464,
uPD70F3465, uPD70F3466, uPD70F3469, uPD70F3470, uPD70F3471, uPD70F3472,
uPD70F3505A, uPD70F3506, uPD70F3507, uPD70F3508, uPD70F3509, uPD70F3522,
uPD70F3523, uPD70F3524, uPD70F3525, uPD70F3526, uPD70F3529, uPD70F3532,
uPD70F3535, uPD70F3536, uPD70F3537, uPD70F3548, uPD70F3549, uPD70F3550,
uPD70F3551, uPD70F3552, uPD70F3553, uPD70F3554, uPD70F3555, uPD70F3556,
uPD70F3557, uPD70F3558, uPD70F3559, uPD70F3560, uPD70F3561, uPD70F3564,
uPD70F3570, uPD70F3571, uPD70F3572, uPD70F3573, uPD70F3574, uPD70F3575,
uPD70F3576, uPD70F3577, uPD70F3578, uPD70F3579, uPD70F3580, uPD70F3582,
uPD70F3583, uPD70F3584, uPD70F3585, uPD70F3592, uPD70F3623, uPD70F3624,
uPD70F3625, uPD70F3626, uPD70F3627, uPD70F3628, uPD70F3629, uPD70F3630,
uPD70F3631, uPD70F3632, uPD70F3633, uPD70F3634, uPD70F3635, uPD70F3636,
uPD70F3637, uPD70F3638, uPD70F3736, uPD70F4000, uPD70F4001, uPD70F4002,
uPD70F4003, uPD70F4004, uPD70F4005, uPD70F4006, uPD70F4007, uPD70F4008,
uPD70F4009, uPD70F4010, uPD70F4011, uPD70F4012
Freescale HCS08: MC9S08DZ16, MC9S08DZ32, MC9S08DZ48, MC9S08DZ60, MC9S08AW16,
MC9S08AW32, MC9S08AW48, MC9S08AW60, MC9S08GB60
Freescale MAC7200: MAC7241, MAC7242
Infineon XC2300: XC2060N-40F, XC2060M-104F, XC2336B-24F, XC2336B-40F, XC2361A-56F,
XC2361A72F, XC2363A-56F, XC2363A-72F, XC2364A-56F, XC2364A-72F, XC2364A-104F,
XC2365A-56F, XC2365A-72F, XC2365A-104F, XC2361B-24F, XC2361B-40F, XC2363B-24F,
XC2363B-40F, XC2364B-24F, XC2364B-40F, XC2365B-24F, XC2365B-40F, XC2336A-56F,
XC2336A-72F, XC2265N-16F, XC2265N-24F, XC2265N-40F
Freescale MPC5600: MPC5604C, MPC5604P, MPC5606B, MPC5601P, MPC5602P, MPC5603P,
MPC5605B, MPC5607B
Freescale 9S12: MC9S12G48, MC9S12G64, MC9S12G96, MC9S12G128, MC9S12G192,
MC9S12G240
STMicroelectronics SPC56P: SPC560P44, SPC560P50, SPC560P34, SPC560P40, SPC560P54,
SPC560P60, SPC56AP54, SPC56AP60
STMicroelectronics ST62*: ST6240, ST6245, ST6249
NSC CR16*: CR16HCS5(9), CR16MCS5(9), CR16MES5(9), CR16MFS5(9), CR16MCT5/9,
CR16HCT5/9

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


5 UPA-USB Device Programmer-S

Motorola HC05*:MC68HC05B6, MC68HC05B8, MC68HC05B16, MC68HC705B16,


MC68HC05B32, MC68HC05E6, MC68HC705E6, MC68HC05H12, MC68HC05L28, MC68HC05P3,
MC68HC705P3*,MC68HC05X16, MC68HC05X32
Motorola HC08*: MC68HC08AS20, MC68HC08AS32, MC68HC08AS60, MC68HC08AZ32,
MC68HC(9)08AZ32A, MC68HC908AZ60, MC68HC908AZ60A
Motorola HC11*: MC68HC11A1, MC68HC11A8, MC68HC11E9, MC68HC11EA9, MC68HC11E20,
MC68HC11F1, MC68HC11K4, MC68HC11KA2, MC68HC11KA4, MC68HC11KG4,
MC68HC11KS2, MC68HC11KS8, MC68HC11L6, MC68HC11P2, MC68HC11PA8, MC68HC11PH8
Motorola HC12*: MC68HC912B32, MC68HC912BE32, MC68HC912D60, MC68HC912D60A,
MC68HC912DC128A, MC68HC912DG128, MC68HC912DG128A
Motorola/Freescale 9S12(X/E): MC9S12A128, MC9S12B128, MC9S12C128, MC9S12C16,
MC9S12C32, MC9S12C64, MC9S12C96, MC9S12D64, MC9S12DG128, MC9S12DG256,
MC9S12DP512, MC9S12H128, MC9S12H256, MC9S12HA32, MC9S12HA48, MC9S12HA64,
MC9S12HY32, MC9S12HY48, MC9S12HY64, MC9S12HZ128, MC9S12HZ256, MC9S12HZ64,
MC9S12P128, MC9S12P32, MC9S12P64, MC9S12P96, MC9S12XA128, MC9S12XA256,
MC9S12XA512, MC9S12XB128, MC9S12XB256, MC9S12XD128, MC9S12XD256, MC9S12XD64,
MC9S12XDG128, MC9S12XDP384, MC9S12XDP512, MC9S12XDQ256, MC9S12XDT256,
MC9S12XDT384, MC9S12XDT512, MC9S12XEG128, MC9S12XEP100, MC9S12XEP768,
MC9S12XEQ384, MC9S12XEQ512, MC9S12XET256, MC9S12XHY128, MC9S12XHY256,
MC9S12XHZ256, MC9S12XHZ384, MC9S12XHZ512, MC9S12XS64, MC9S12XS128,
MC9S12XS256
Atmel 8051 Architecture: AT89S51, AT89S52, AT89S53, AT89S8252, AT89S8253
Atmel AVR 8-Bit Risk: AT90S1200, AT90S2313, AT90S2323, AT90S2333, AT90S2343,
AT90S4433, AT90S4434, AT90S8515, AT90S8535, ATmega8, ATmega16, ATmega161,
ATmega162, ATmega163, ATmega323, ATmega64, ATmega103, ATmega128, ATtiny12,
ATtiny15, ATtiny2313, ATmega8515, ATmega8535, ATmega48, ATmega88,
ATmega168,ATmega169, ATmega328, ATMEGA32A
Microchip PIC12:PIC12F508, PIC12F509, PIC12F629, PIC12F675
Microchip PIC16:PIC16F627(A), PIC16F628(A), PIC16F648A, PIC16F72, PIC16F73, PIC16F74,
PIC16F76, PIC16F77, PIC16F818, PIC16F819, PIC16F83, PIC16F84(A), PIC16F870, PIC16F871,
PIC16F872, PIC16F873(A), PIC16F874(A), PIC16F876(A), PIC16F877(A), PIC16F913, PIC16F914,
PIC16F916, PIC16F917, PIC16F946, PIC16F87, PIC16F88, PIC16F1933, PIC16F1934,
PIC16F1936, PIC16F1937, PIC16F1938, PIC16F1939, PIC16F1946, PIC16F1947
EEPROMs I2C: 24C01, 24C02, 24C04, 24C08, 24C16, 24C32, 24C64, 24C65, 24C128, 24C256,
24C512, 85C72, 85C82, 85C92, BAW574252, GRM-003, GRM-004, GRM-005, KKZ-06F,
MCM2814, PCA8581, PCF8581, PCF8582, PCF8594, PCF8598, PCF85102, PCF85116, SDA2516,
SDA2526, SDA2546, X24C00, X24C01, 24C1024, 24C1025
EEPROMs Microwire: 7002, 93C06, 93C14, 93C46, 93C56, 93C57, 93C66, 93C76, 93C86,
93S46, 93S56, 93S66, GRN-001, GRO-002, KKZ-01, S220, S2914, ST61907, XLS93C46
EEPROMs SPI: M35080, 25C010, 25C020, 25C040, 25C080, 25C128, 25C160, 25C256, 25C320,
25C640, ST95010, ST95020, ST95040, ST95080, ST95160, ST95320, ST95640, ST95P02,
ST95P04, ST95P08, X5043, X5045, 25LC512, 25LC1024
EEPROMs Miscellaneous: CXK1011, CXK1012, CXK1013, M6M80011, M6M80021, M6M80041,
SDE2506, TC89101, TC89102, 77005, 77007, BR9010, BR9020, BR9040, CAT64LC10,
CAT64LC20, CAT64LC40, S-29190A, S-29290A ,S-29390A
Serial Flash SPI: M25P05, M25P10, M25P20, M25P40, M25P80, A25L512, A25L010, A25L020,
A25L040, A25L080, A25L016, A25L032, SST25VF512A, SST25VF010A, SST25VF020B,
SST25VF040B, SST25VF080B, SST25VF016B, SST25VF032B, S25FL004A, S25FL008A,
S25FL016A, S25FL032A, S25FL064A, M95M01, M95M02

*EEPROM only
**D-Flash Memory only

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 6

3.2 Jumpers and Connectors Description

9-Pin in-circuit connector description


1: P1: 8-13V Vpp output pin
2: P2: I/O pin with weak pull-up 8.2k resistor
3: P3:I/O pin
4: P4I/O pin
5: P5: GND
6: P6: I/O pin with weak pull-up 8.2k resistor
7: P7:I/O pin
8: P8:I/O pin
9: P9: 1.2-5V Power supply output, max 0.3A

30-Pin adapter connector description


1-9: P1-P9 the same pins as 9-Pin in-circuit connector
10-29: D0-D19 I/O pins
30: GND

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


7 UPA-USB Device Programmer-S

3.3 Atmel 8051, AVR 8-Bit Risk

3.4 Microchip PICs

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 8

3.5 EEPROMs
3.5.1 I2C and SPI

3.5.2 Microwire

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


9 UPA-USB Device Programmer-S

3.5.3 M35080

3.5.4 SDA(E)2506

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 10

3.6 Motorola/Freescale HC05


3.6.1 MC68HC05B PLCC52

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


11 UPA-USB Device Programmer-S

3.6.2 MC68HC705B16 PLCC52

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 12

3.6.3 MC68HC05H12 PLCC52

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


13 UPA-USB Device Programmer-S

3.6.4 MC68HC05L28 PDIP56

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 14

3.6.5 MC68HC05X16/32 QFP64

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


15 UPA-USB Device Programmer-S

3.6.6 MC68HC05K3

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 16

3.7 Motorola/Freescale HC08


3.7.1 MC68HC(9)08 QFP64

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


17 UPA-USB Device Programmer-S

3.7.2 MC68HC08AZ32 QFP100

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 18

3.7.3 MC68HC08AS20 PLCC52

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


19 UPA-USB Device Programmer-S

3.8 Motorola/Freescale HC11


3.8.1 MC68HC11A8/E9 PLCC52

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 20

3.8.2 MC68HC11E QFP64

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


21 UPA-USB Device Programmer-S

3.8.3 MC68HC11E SDIP56

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 22

3.8.4 MC68HC11EA9 PLCC52

LIFT Vddsyn (23) pin


REPLACE ORIGINAL QUARTZ RESONATOR WITH A 8MHz ONE
See Application Note: EB422.PDF available from www.freescale.com

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


23 UPA-USB Device Programmer-S

3.8.5 MC68HC11F1 PLCC68

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 24

3.8.6 MC68HC11K PLCC84

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


25 UPA-USB Device Programmer-S

3.8.7 MC68HC11K QFP80

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 26

3.8.8 MC68HC11KA2/4 PLCC68

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


27 UPA-USB Device Programmer-S

3.8.9 MC68HC11KA2/4 QFP64

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 28

3.8.10 MC68HC11KG4 QFP100

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


29 UPA-USB Device Programmer-S

3.8.11 MC68HC11KS PLCC68

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 30

3.8.12 MC68HC11L6 PLCC68

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


31 UPA-USB Device Programmer-S

3.8.13 MC68HC11P2 PLCC84

LIFT Vddsyn (68) pin


REPLACE ORIGINAL QUARTZ RESONATOR WITH A 8MHz ONE
See Application Note: EB422.PDF available from www.freescale.com

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 32

3.8.14 MC68HC11PA8 QFP64

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


33 UPA-USB Device Programmer-S

3.8.15 MC68HC11PH8 PLCC84

LIFT Vddsyn (68) pin


REPLACE ORIGINAL QUARTZ RESONATOR WITH A 8MHz ONE
See Application Note: EB422.PDF available from www.freescale.com

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 34

3.9 Motorola/Freescale HC12


3.9.1 MC68HC(9)12B32 QFP80

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


35 UPA-USB Device Programmer-S

3.9.2 MC68HC(9)12D60(A) QFP80

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 36

3.9.3 MC68HC(9)12D60(A)/DG128(A) QFP112

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


37 UPA-USB Device Programmer-S

3.10 Motorola/Freescale HCS08

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 38

3.11 Motorola/Freescale HCS12


3.11.1 MC9S12Dx64/128/256 QFP80

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


39 UPA-USB Device Programmer-S

3.11.2 MC9S12Dx64/128/256 QFP112

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 40

3.11.3 MC9S12H(Z)128/256 QFP112

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


41 UPA-USB Device Programmer-S

3.11.4 MC9S12XHZ128/256 QFP112

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 42

3.11.5 MC9S12HY64 QFP100

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


43 UPA-USB Device Programmer-S

3.12 Motorola/Freescale MAC


3.12.1 MAC7241/2 QFP100

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 44

3.13 Motorola/Freescale MPC


3.13.1 MPC5604P QFP100

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


45 UPA-USB Device Programmer-S

3.14 STMicroelectronics ST6


3.14.1 ST6240 QFP80

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 46

3.14.2 ST6245 QFP52

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


47 UPA-USB Device Programmer-S

3.14.3 ST6249 QFP68

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 48

3.15 Infineon XC2300


3.15.1 XC2336B QFP64

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


49 UPA-USB Device Programmer-S

3.15.2 XC236x QFP100 JTAG Default position

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 50

3.15.3 XC236X QFP100 JTAG position C

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


51 UPA-USB Device Programmer-S

3.16 NEC/Renesas
The connections for V850 devices are available in the UUPROG-S software v2.2.3 and later.
- Select a V850 device in programmer page, then click connections tab on the bottom right corner of
the window.

3.17 78K0/HC912 Adapter


Supported Devices
NEC uPD780828A, uPD780973/4, uPD780948/9
Motorola (Freescale) 68HC912D60(A)DG128(A), 68HC912DC128A

78K0 in circuit programming via 14 wire connection using J2 connector (Pins 15 and 16 are not
used)
uPD780828A connections
uPD780973/4 connections
uPD780948/9 connections

78K0 programming by a test board


solder the MCU on a test board, and plug it into the 24 pin connector J1

HC912 programming by a test board


solder the MCU on a test board, and plug it into the 24 pin connector J1
LED must blink during read/program

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 52

3.17.1 Jumpers and Connectors Description

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


53 UPA-USB Device Programmer-S

3.17.2 uPD780824/6/8A

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 54

3.17.3 uPD780973/4

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


55 UPA-USB Device Programmer-S

3.17.4 uPD780948/9

3.17.5 68HC912 QFP112

Desolder the MCU from the target board by hot air solder.
Solder the MCU on the 912D60/DG128 testing board according the picture below

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 56

Check for shorted pins by an ohm meter


Plug the 912D60/DG128 test board in the 78K0/HC912 adapter ( J1 24 pins connector )
Look out for PIN1!
Plug the 78K0/HC912 Adapter in the UUSP - (DB9 Male Connector)
Connect the PC USB cable to the UUSP
Run UPA-USB Device Programmer Software and select a MCU - MC68HC912D60(A),
MC68HC912DG128(A) or MC68HC912DC128A
Select a 4MHz Oscillator frequency (The 78K0/HC912 adapter use a 4MHz quartz)
Push the Read button, look at the red LED on the Adapter - It have to blink during reading (also
during all other actions)
Blinking LED means that the MCU executes the code programmed in the external flash memory.
If in the future you'd like to access the MCU by BDM in circuit, push Disable BDM Lockout button.
This will set NOBDM bit to 1 (Shadow word)

Note:
It's possible the original software (in the MCU internal flash) to enable BDM Lockout again after
soldering of the MCU back on the target board.
Such MCU can be read/program by BDM Lockout Adapter only

3.18 TMS Adapter


Supported Devices
TMS370cx0x, TMS370cx5x, TMS375c006
TMS370cx36 and TMS370cx42 by additional adapter

3.18.1 Socket Description

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


57 UPA-USB Device Programmer-S

3.18.2 Additional Adapter Schematics


3.18.2.1 TMS370cx36 Adapter Schematic

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


UUSP-S (UPA-USB Serial Programmer-S) 58

3.18.2.2 TMS370cx42 Adapter Schematic

4 Pascal Script Reference


4.1 Device Management
function AddAction( Caption, ProcName, DeviceName: string ): boolean
function AddDevice( DeviceName, Description, GroupName, InheritedDeviceName: string ): boolean
function AddDeviceGroup( GroupName, Description: string ): boolean
function BlankCheckDevice: boolean
function GetDevice( DeviceName: string; var DevBase: TDevice ): boolean
procedure HideDeviceOrGroup( DeviceOrGroupName: string )
function ProgramDevice: boolean
function ReadDevice: boolean
procedure ShowDeviceOrGroup( DeviceOrGroupName: string )
function VerifyDevice: boolean

4.1.1 AddAction
function AddAction( Caption, ProcName, DeviceName: string ): boolean

4.1.2 AddDevice
function AddDevice( DeviceName, Description, GroupName, InheritedDeviceName: string ): boolean

4.1.3 AddDeviceGroup
function AddDeviceGroup( GroupName, Description: string ): boolean

4.1.4 BlankCheckDevice
function BlankCheckDevice: boolean

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


59 UPA-USB Device Programmer-S

4.1.5 GetDevice
function GetDevice( DeviceName: string; var DevBase: TDevice ): boolean

4.1.6 HideDeviceOrGroup
procedure HideDeviceOrGroup( DeviceOrGroupName: string )

4.1.7 ProgramDevice
function ProgramDevice: boolean

4.1.8 ReadDevice
function ReadDevice: boolean

4.1.9 ShowDeviceOrGroup
procedure ShowDeviceOrGroup( DeviceOrGroupName: string )

4.1.10 VerifyDevice
function VerifyDevice: boolean

4.2 File I/O


function AddOpenFileAction( Caption, DeviceName, FileName: string ): boolean
function OpenFile( FileName: string ): boolean

4.2.1 AddOpenFileAction
function AddOpenFileAction( Caption, DeviceName, FileName: string ): boolean

4.2.2 OpenFile
function OpenFile( FileName: string ): boolean

4.3 Hex Editor


function GetByteHexEdit( Offset: integer ): byte
function GetSizeHexEdit: integer
procedure RefreshHexEdit
function SelectAllMemoryRange: boolean
function SelectEEPROMRange: boolean
procedure SetByteHexEdit( Offset: integer; Value: byte )
procedure SetProgramModifiedOnly( Value: boolean )
function SetProgramRange( StartVal, EndVal: integer ): boolean

4.3.1 GetByteHexEdit
function GetByteHexEdit( Offset: integer ): byte

4.3.2 GetSizeHexEdit
function GetSizeHexEdit: integer

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


Pascal Script Reference 60

4.3.3 RefreshHexEdit
procedure RefreshHexEdit

4.3.4 SelectAllMemoryRange
function SelectAllMemoryRange: boolean

4.3.5 SelectEEPROMRange
function SelectEEPROMRange: boolean

4.3.6 SetByteHexEdit
procedure SetByteHexEdit( Offset: integer; Value: byte )

4.3.7 SetProgramModifiedOnly
procedure SetProgramModifiedOnly( Value: boolean )

4.3.8 SetProgramRange
function SetProgramRange( StartVal, EndVal: integer ): boolean

4.4 Message and Input Boxes


procedure AddMsg( Text: string )
procedure ClearMsgs
function InBox( Caption, EditLabel: string; var Value: string ): boolean
function MsgBox( Text, Caption: string; Flags: integer ): integer

4.4.1 AddMsg
procedure AddMsg( Text: string )

4.4.2 ClearMsg
procedure ClearMsgs;

4.4.3 InBox
function InBox( Caption, EditLabel: string; var Value: string ): boolean
Displays a prompt in a dialog box, waits for the user to input text or click a button, and returns
the contents of the text box to Value parameter.

Parameters
Caption: string
string that contains the input box title
EditLabel: string
string that contains the edit control label
Value: string

Return Value
If the user clicks OK or presses ENTER, the InBox function returns True and Value parameter,
whatever is in the text box. If the user clicks Cancel, the function returns False.

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


61 UPA-USB Device Programmer-S

4.4.4 MsgBox
function MsgBox( Text, Caption: string; Flags: integer ): integer
The MsgBox function creates, displays, and operates a message box

Parameters
Text: string
string that contains the message to be displayed
Caption: string
string that contains the dialog box title
Flags: integer
Specifies the contents and behavior of the dialog box. This parameter can be a combination of
flags from the following groups of flags. To indicate the buttons displayed in the message box,
specify one of the following values.
MB_OK
The message box contains one push button: OK. This is the default.
MB_OKCANCEL
The message box contains two push buttons: OK and Cancel.
MB_ABORTRETRYIGNORE
The message box contains three push buttons: Abort, Retry, and Ignore.
MB_YESNOCANCEL
The message box contains three push buttons: Yes, No, and Cancel
MB_YESNO
The message box contains two push buttons: Yes and No.
MB_RETRYCANCEL
The message box contains two push buttons: Retry and Cancel.
To display an icon in the message box, specify one of the following values.
MB_ICONHAND
A stop-sign icon appears in the message box.
MB_ICONQUESTION
A question-mark icon appears in the message box.
MB_ICONEXCLAMATION
An exclamation-point icon appears in the message box.
MB_ICONASTERISK
An icon consisting of a lowercase letter i in a circle appears in the message box.
MB_ICONWARNING
An exclamation-point icon appears in the message box.
MB_ICONERROR
A stop-sign icon appears in the message box.
MB_ICONINFORMATION
An icon consisting of a lowercase letter i in a circle appears in the message box.
MB_ICONSTOP
A stop-sign icon appears in the message box.

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


Pascal Script Reference 62

Return Value
If the function fails, the return value is zero.
If the function succeeds, the return value is one of the following menu-item values.
IDABORT Abort button was selected.

IDCANCEL Cancel button was selected.

IDIGNORE Ignore button was selected.

IDNO No button was selected.


IDOK OK button was selected.
IDRETRY Retry button was selected.
IDYES Yes button was selected.

4.5 Miscellaneous
Application: TApplication
InputForm: TForm
function IntToHex( Value: Integer; Digits: Integer ): string
procedure SetProductInfo( ProductName, Description: string )

4.5.1 Application
Application: TApplication

4.5.2 InputForm
InputForm: TForm

4.5.3 IntToHex
function IntToHex( Value: Integer; Digits: Integer ): string

4.5.4 SetProductInfo
procedure SetProductInfo( ProductName, Description: string )

4.6 RemObjects Pascal Script


Types
Reserved words
Statements
Library

4.6.1 Library
function FloatToStr( e: extended ): string
function IntToStr( i: Longint ): string

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


63 UPA-USB Device Programmer-S

function StrToInt( s: string ): Longint


function StrToIntDef( s: string; def: Longint ): Longint
function Copy( s: string; ifrom, icount: Longint ): string
function Pos( substr, s: string ): Longint
procedure Delete( var s: string; ifrom, icount: Longint ): string
procedure Insert( s: string; var s2: string; ipos: Longint ): string
function GetArraylength( var v: array ): Integer
procedure SetArrayLength( var v: array; i: Integer )
function StrGet( S : String; I : Integer ) : Char
function StrSet( c : Char; I : Integer; var s : String ) : Char
function Uppercase( s : string ) : string
function Lowercase( s : string ) : string
function Trim( s : string ) : string
function Length( s : String ) : Longint
procedure SetLength( var S: String; L: Longint )
function Sin( e : Extended ) : Extended
function Cos( e : Extended ) : Extended
function Sqrt( e : Extended ) : Extended
function Round( e : Extended ) : Longint
function Trunc( e : Extended ) : Longint
function Int( e : Extended ) : Longint
function Pi : Extended
function Abs( e : Extended ) : Extended
function StrToFloat( s: string ): Extended
function FloatToStr( e : Extended ) : String
function Padl( s : string; I : longInt ) : string
function Padr( s : string; I : longInt ) : string
function Padz( s : string; I : longInt ) : string
function Replicate( c : char; I : longInt ) : string
function StringOfChar( c : char; I : longInt ) : string

4.6.2 Reserved words


AND
ARRAY
AS
BEGIN
CASE
CHR
CLASS
CONST
CONSTRUCTOR
DESTRUCTOR
DIV
DO
DOWNTO
ELSE
END
EXCEPT
EXIT
EXPORT
EXTERNAL
FINALLY

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


Pascal Script Reference 64

FOR
FORWARD
FUNCTION
GOTO
IF
IMPLEMENTATION
IN
INHERITED
INTERFACE
IS
LABEL
MOD
NIL
NOT
OF
OR
ORD
OUT
OVERRIDE
DEFAULT
PRIVATE
PROCEDURE
PROGRAM
PROPERTY
PROTECTED
PUBLIC
PUBLISHED
RECORD
REPEAT
SET
SHL
SHR
THEN
TO
TRY
TYPE
UNIT
UNTIL
USES
VAR
VIRTUAL
WHILE
WITH
XOR

4.6.3 Statements
begin statement1; ... statementN; end
if expression then statement1 else statement2
for counter := expression1 to|downto expression1 do statement
case expression of caseList1: statement1; ... caseListn: statementN; end
repeat statement until expression
while expression do statement

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu


65 UPA-USB Device Programmer-S

with object do statement


uses
try statement except|finally statement end
exit
continue
break

4.6.4 Types
Byte, Shortint, Word, SmallInt, Cardinal, Longint, Integer
Char
String
Real, Double, Single, Extended,Comp
Boolean
Array
Record
Variant
Enumerations
Classes

Copyright © 2005 - 2021 ELRASOFT EOOD., www.elrasoft.com, www.elrasoft.eu

You might also like