kripacharya
Banned
- Joined
- Dec 28, 2012
- Messages
- 1,204
- Helped
- 182
- Reputation
- 360
- Reaction score
- 175
- Trophy points
- 1,343
- Location
- New Delhi
- Activity points
- 0
For ever now I have been trying to use PB7 as a normal digital I/O on the Atmega48/ 168. It just does not work.... but why ?
The manual claims that if the pin is NOT used as a clock pin (i.e. as a Crystal pin or an Osc input for the Async clock to the T1mer/ counter2), then it can be used as a regular digital I/O.
My setup has an External Clock (on PB6), and fuse bits are set for this External Clock.
As2 and EXCLK all combinations have been tried.
The PB7 stays firmly stuck to 0v. Bit-wise instructions don't budge it, full port writes don't budge it. All other bits on PORT B are working fine.
Shall i give up and never assign PB7 to any useful purpose ?? How to make it work ?? What am I missing... ??
The manual claims that if the pin is NOT used as a clock pin (i.e. as a Crystal pin or an Osc input for the Async clock to the T1mer/ counter2), then it can be used as a regular digital I/O.
My setup has an External Clock (on PB6), and fuse bits are set for this External Clock.
As2 and EXCLK all combinations have been tried.
The PB7 stays firmly stuck to 0v. Bit-wise instructions don't budge it, full port writes don't budge it. All other bits on PORT B are working fine.
Shall i give up and never assign PB7 to any useful purpose ?? How to make it work ?? What am I missing... ??