mikroPascal PRO for dsPIC
mikroPascal PRO for dsPIC30/33 and PIC24 is a full-featured compiler
for dsPIC30, dsPIC33 and PIC24 MCUs from Microchip. It is designed
for developing, building and debugging dsPIC30/33 and PIC24-
based embedded applications. This development environment has a
wide range of features such as: easy-to-use IDE, very compact and
efficient code, many hardware and software libraries, comprehensive
documentation, software simulator, COFF file generation, SSA
optimization (up to 30% code reduction) and many more. Numerous
ready-to-use and well-explained examples will give a good start for
your embedded project.
™
Manual
Compiler
MikroElektronika
mikoPascal PRO for dsPIC30/33 and PIC24
Table of Contents
Features
Where to Start
CHAPTER 1
INTRODUCTION
Introduction to mikroPascal PRO for dsPIC30/33 and PIC24
What’s new in mikroPascal PRO for dsPIC30/33 and PIC24
Software License Agreement
Compiler Changes
IDE Changes
32
32
33
34
35
33
33
34
34
Technical Support
How to Register
mikroElektronika Associates License Statement and Limited Warranty
IMPORTANT - READ CAREFULLY
LIMITED WARRANTY
HIGH RISK ACTIVITIES
GENERAL PROVISIONS
CHAPTER 2
mikroPascal PRO for dsPIC30/33 and PIC24 Environment
Main Menu Options
File
Edit
File Menu Options
Edit Menu Options
Find Text
Replace Text
Find In Files
Go To Line
Regular expressions option
View Menu Options
Project Menu Options
Build Menu Options
Run Menu Options
Tools Menu Options
Who Gets the License Key
How to Get License Key
After Receving the License Key
37
37
35
35
35
36
36
41
41
42
43
44
37
37
39
43
44
45
45
46
46
46
47
49
50
51
52
View
47
49
50
51
52
Project
Build
Run
Tools
MikroElektronika
2
mikroPascal PRO for dsPIC30/33 and PIC24
Help
Help Menu Options
IDE Overview
53
54
55
mikroPascal PRO for dsPIC30/33 and PIC24 IDE
Code Editor
Editor Settings
Auto Save
Highlighter
Spelling
Comment Style
Code Folding
Code Assistant
Parameter Assistant
Bookmarks
Go to Line
Column Select Mode
Editor Colors
Auto Correct
Auto Complete (Code Templates)
Routine List
53
54
55
56
56
56
56
56
57
57
57
57
58
58
59
60
63
Code Explorer
62
63
65
66
68
68
Project Manager
Project Settings
Library Manager
Routine List
Statistics
Managing libraries using Package Manager
67
Messages Window
Quick Converter
Macro Editor
Image Preview
Toolbars
Memory Usage Windows
RAM Memory Usage
Used RAM Locations
SFR Locations
ROM Memory Usage
ROM Memory Constants
Functions
Functions Sorted By Name Chart
Functions Sorted By Size Chart
Functions Sorted By Addresses
Function Tree
Memory Summary
75
76
76
77
79
68
69
69
70
70
71
71
72
72
73
73
74
3
MikroElektronika
mikoPascal PRO for dsPIC30/33 and PIC24
File Toolbar
Edit Toolbar
Advanced Edit Toolbar
Find/Replace Toolbar
Project Toolbar
Build Toolbar
Debug Toolbar
Styles Toolbar
Tools Toolbar
View Toolbar
Layout Toolbar
Help Toolbar
Docking Windows
Saving Layout
Auto Hide
Code editor
Tools
Output settings
Active Comments Editor
ASCII Chart
EEPROM Editor
Filter Designer
Graphic Lcd Bitmap Editor
HID Terminal
Lcd Custom Character
Seven Segment Editor
UDP Terminal
USART Terminal
New Active Comment
Renaming Active Comment
Deleting Active Comment
80
80
81
81
82
82
83
83
84
84
85
85
86
87
87
88
88
89
91
92
93
93
94
95
96
97
97
98
Customizing IDE Layout
86
Options
88
Integrated Tools
91
Active Comments
Export Project
Jump To Interrupt
Regular Expressions
Introduction
Simple matches
Escape sequences
Character classes
Metacharacters
108
109
110
99
106
107
99
Metacharacters - Line separators
Metacharacters - Predefined classes
Metacharacters - Word boundaries
110
110
110
110
111
111
112
112
MikroElektronika
4
mikroPascal PRO for dsPIC30/33 and PIC24
Metacharacters - Iterators
Metacharacters - Alternatives
Metacharacters - Subexpressions
Metacharacters - Backreferences
112
113
113
113
Keyboard Shortcuts
CHAPTER 3
mikroPascal PRO for dsPIC30/33 and PIC24 Command Line Options
CHAPTER 4
mikroICD (In-Circuit Debugger)
Introduction
mikroICD Debugger Options
mikroICD Debugger Example
mikroICD Debugger Windows
Debug Windows
Breakpoints Window
Watch Values Window
RAM Window
Stopwatch Window
EEPROM Watch Window
Code Watch Window
Debugger Options
114
116
116
118
118
118
120
121
125
120
CHAPTER 5
Software Simulator Overview
Software Simulator
Software Simulator Debug Windows
Debug Windows
Breakpoints Window
Watch Values Window
RAM Window
Stopwatch Window
EEPROM Watch Window
Code Watch Window
Debugger Options
130
130
131
132
125
125
125
127
127
128
129
Software Simulator Debugger Options
CHAPTER 6
mikroPascal PRO for dsPIC30/33 and PIC24 Specifics
Predefined Globals and Constants
Accessing Individual Bits
sbit type
at keyword
bit type
Predefined project level defines
GOTO Table
137
138
138
140
141
132
132
132
134
134
135
136
137
139
140
142
143
143
5
MikroElektronika