Keil Logo Arm Logo

Discussion Forum

Why timer interrupts are getting enabled?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
bhaskar reddy
Posted
25-Apr-2012 16:17 GMT
Toolset
C51
New! Why timer interrupts are getting enabled?

Hi, I am using P89V51RD2 Micro controller for my project(Which is having 64k Program memory and 1024bytes data RAM and I am programming in C ).I am disabling interrupts (making EA=0)before calling a function and Enabling after comming out from that loop.I am not enabling interrupts in that function but the timer interrupt is getting enabled before comming out from the function,which is making distrubance to the functionality of my system. I feel the reasons for this may be one of the following.
1.I am using Watch dog timer in the code.
2.When I am building the code in keil software it is showing , Program Size: data=9.1 xdata=590 code=44295 creating hex file from "SGW"... "SGW" - 0 Error(s), 6 Warning(s) I think this is because of insufficient internal data memory . can you please tell me what is the reason for this problam?

Read-Only
Author
Erik Malund
Posted
26-Apr-2012 22:22 GMT
Toolset
C51
New! first step

1.I am using Watch dog timer in the code.
what happens if you don't

Erik

Read-Only
Author
Erik Malund
Posted
26-Apr-2012 22:23 GMT
Toolset
C51
New! sounds bad

I am disabling interrupts (making EA=0)before calling a function and Enabling after comming out from that loop.
imterrupts should only be disabled for atomicity issues, not for 'a loop'

Erik

Read-Only
Author
ashley madison
Posted
28-Apr-2012 21:19 GMT
Toolset
C51
New! RE: sounds bad

imterrupts should only be disabled for atomicity issues,

Really, erik? Really?

Read-Only
Author
Erik Malund
Posted
29-Apr-2012 01:58 GMT
Toolset
C51
New! RE: sounds bad

Really, erik? Really?
yes, REALLY.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.