Hi,
As i forget the problem for which i thought the bit manipulation TIFR sorry dear sam_des? If it comes in my mind i will let you know.
Don't worry. It happens all the time to all of us
The Problem is:-
I made PORTB as output port in my program and while the AVR startes executing the program all the pins of PORTB becomes HIGH state for approximately 5 to 25 micro seconds and then works as i wish. sometimes even i coudnt capture the duration of HIGH state with my TEK OSC, iam totally confused. Anybody suggest whether it will cause any problem in firing high power inverters?
Check the datasheet
But if you don't want to --
1) All the ports are tri-stated(high z) during the RESET. That's why when you try to check them, they can in any state. Even your DMM or oscilloscope probe may change it's state.
2) There is in-built power-on delay after reset to allow power & clock to stabilize. You select how much this delay is when you program the fuses.
3) If you are writing your software in C, then after reset, c0 module gets control, which intializes the data/return stacks, zeros entire ram, intializes static vars from rom and many other things.
That just indicates that your code initializing PORTB as output executes much later than you imagin.
Well there might be problems with power inverters, if this causes simultaneous turn-on of full/half bridge leg or push pull
Solution is simple one-
1) Use pull-down resistors on these pins or
2) Use a driving logic/driver that is active-low to drive mosfet.
regards,
sam_des