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.

timer-based interrupt routine

Status
Not open for further replies.

wta306

New Member
Hi everyone...I'm new to this board and microcontrollers in general. So I need a little help.

I am trying to create a a timer-based interrupt routine that generates an interrupt every 'X' microseconds. I prefer coding in C seeing as my assembly is very rusty.

By the way, I am working with a PIC16F877A
 
wta306 said:
Hi everyone...I'm new to this board and microcontrollers in general. So I need a little help.

I am trying to create a a timer-based interrupt routine that generates an interrupt every 'X' microseconds. I prefer coding in C seeing as my assembly is very rusty.

By the way, I am working with a PIC16F877A

how much 'X' microseconds are we talking about?
A 'F877 running at 20Mhz will need 0.2 microseconds for 1 instruction. so if 'X' is very low you might not be able to pull it off ...
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top