Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

C Code Tags bug?

Status
Not open for further replies.

Vizier87

Active Member
Hi everyone,
Last time I posted a C code, EM himself edited it from[C0DE][/CODE] to
C:
.
I'd say it's a very good feature of the forum, and I emulated EM's way of doing it. However, of late, I couldn't make it display as a C code anymore. I'd say I really like the highlights of the code in color. :)

Anyone else experiencing the same problems?

Vizier87
 
Testing,
C:
void InitTimer1(){
    t1con=0xB0;             //timer 1 prescaller 8 and RD16
    ccp1con=0x0b;           //special event trigger
    ccpr1l=52;              //at 52uS = 1 bit width
    ccpr1h=0;
    pie1.CCP1IE=1;          //enable interrupt
    ipr1.CCP1IP=1;          //high priority
    t3con &= 0b10110111;    //ccp uses timer 1
    pir1.CCP1IF=0;          //clear any interrupts
}

void InitTimer2(){
    t2con=(7<<T2OUTPS0)+0;  //pre=8 and post=4
    pr2=52;                 //1 bit time
    ipr1.TMR2IP=1;          //timer 2 high priority
    pie1.TMR2IE=1;
    pir1.TMR2IF=0;
}

Yes, the
C:
 tags appear to be broken.

Mike.
 
Last edited by a moderator:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top