- Special Function Register - a register that controls or interacts with the microcontroller or one of its on-chip peripherals.
SCL automatically creates variables that correspond to each of the SFRs on the current device. The variable name will be the same as the SFR. The SFR variable can then be assigned, tested, etc:
ADC1BUF0 <= #16#15F#; if STATUS == 0 then
SFRs in SCL are modeled as records where the fields are the SFR fields become the record fields. This allows the user to reference the fields by name without having to manually mask and shift:
PIR3.ADIF <= 1; if STATUS.Z == 0 then
Microchip Technology acquires Atmel