SW500008 Microchip Technology, SW500008 Datasheet - Page 47
SW500008
Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Specifications of SW500008
Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
778-1001
778-1001
- Current page: 47 of 486
- Download datasheet (4Mb)
C Language Features
3.2.6 Bit Instructions
Wherever possible, HI-TECH PICC-18 STD will attempt to use the PIC18 bit instructions. For
example, when using a bitwise operator and a mask to alter a bit within an integral type, the compiler
will check the mask value to determine if a bit instruction can achieve the same functionality.
will produce the instruction:
To set or clear individual bits within integral type, the following macros could be used:
To perform the same operation as above, the bitset macro could be employed as follows:
3.2.7 Multi-byte SFRs
Some of the SFRs associated with the PIC18 can be grouped to form multi-byte values, e.g. the
TMRxH and TMRxL register together form a 16-bit timer count value. Depending on the device
and mode of operation, there may be hardware requirements to read these registers correctly, e.g.
Peripheral
tag
USBRAM
BOOTROM
BOOT256,
BOOT512,
BOOT1K,
BOOT2K,
BOOT4K
unsigned int foo;
foo |= 0x40;
bsf _foo,6
#define bitset(var,bitno)
#define bitclr(var,bitno)
bitset(foo,6);
USB dual-port RAM
Boot sector in flash
memory
Boot sector in flash
memory
Description
Table 3.1: Peripheral memory tags
((var) |= 1 < < (bitno))
((var) &= ~(1 < < (bitno)))
Devices that have dual-port USB RAM
Flash memory based devices with a fixed length
boot sector
Flash memory based devices with variable length
boot sector. Only tags corresponding to valid boot
sector sizes for that chip will be available.
Applicable devices
Processor-related Features
33
Related parts for SW500008
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: