Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
PIC microcontrollers
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Compiler development=== While several commercial compilers are available, in 2008, Microchip released their own C compilers, C18 and C30, for the line of 18F 24F and 30/33F processors. As of 2013, Microchip offers their XC series of compilers, for use with [[MPLAB|MPLAB X]]. Microchip will eventually phase out its older compilers, such as C18, and recommends using their XC series compilers for new designs.<ref>{{cite web|url=http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/|title=MPLAB® XC: Compiler Solutions|website=microchip.com|access-date=7 April 2018}}</ref> The RISC instruction set of the PIC assembly language code can make the overall flow difficult to comprehend. Judicious use of simple [[macro (computer science)|macros]] can increase the readability of PIC assembly language. For example, the original [[Parallax, Inc. (company)|Parallax]] PIC assembler ("SPASM") has macros, which hide W and make the PIC look like a two-address machine. It has macro instructions like <code>mov b, a</code> (move the data from address ''a'' to address ''b'') and <code>add b, a</code> (add data from address ''a'' to data in address ''b''). It also hides the skip instructions by providing three-operand branch macro instructions, such as <code>cjne a, b, dest</code> (compare ''a'' with ''b'' and jump to ''dest'' if they are not equal).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)