Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

PIC16 header file / syntax question

$
0
0
Hi all,

Recently in uni we are messing with the MSP430 Launchpad from TI, when setting registers there,
we look up the registers in the included header file, setting the individual bits was quite intuitive.

Say I wanted to set Bits TASSEL1 and MC0 of the TA0CTL register I could just write
TA0CTL |= MC0 + TASSEL1;


[​IMG]

I want to try do the same with a PIC micro, but it's header file is different, can anyone show what the syntax is for setting...

PIC16 header file / syntax question

Viewing all articles
Browse latest Browse all 1271

Trending Articles