Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] PIC18F452 Timer interrupt

Status
Not open for further replies.

kasamiko

Full Member level 3
Joined
May 23, 2004
Messages
154
Helped
16
Reputation
32
Reaction score
18
Trophy points
1,298
Location
Philippines
Activity points
1,121
I was trying to port the code for PIC16F877A to PIC18F452. I'm stuck with this line..

option_reg = %00000111

//Prescaler is assigned to the Timer0 module, 111 is Prescaler Rate Select bits which is 1:256.

Since there is no option_reg in PIC18xxx, can somebody show me some example on how to implement this in PIC18F452?

I'm using PIC18 Simulator IDE..


WBR
 

hi,
Use T0CON & INTCON registers

Ref image.

E
 

Attachments

  • A01.gif
    A01.gif
    59.5 KB · Views: 71
  • A02.gif
    A02.gif
    52.9 KB · Views: 79
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top