![]() ![]() Can anyone help me with it? Since am learning this controller, practicing core programming is quite important. When user attempts to access timer registers it might not work as intended.īut am not sure about the validity of above opinion. When searching the internet I have got few suggestions that this might be because Arduino IDE uses timer registers for delay function. I have uploaded the above code but the LED isn't responding as anticipated. I have used the overflow flag to identify TCNT0 register status. While((TIFR & (1 << TOV0) )=0) //Waiting for 0-255 and flag to raise GTCCR|= (1<<TSM) ///Halt the timer for configuration For example the below code works and I can get the on board LED to turn ON and OFF #include I can get the board to work when comes just input and output operations. ![]() So I tried using internal register names in the code rather than using Arduino in built functions. I have bought a Digispark ATtiny85 board to learn about that microcontroller. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |