AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Atmel studio 73/10/2024 In the program you will find _BV() or (1 << PB2) both are micros that have a defined file that do this for you.Īlso it is worth tell you that you do have and, or, or xor too.Īrduino is open source and don't have protections if you want to make a projected that you would like to sell to the public. so if you want this binary (0b00000010) you would do this (1 << 2). How do you bit shift? Will you use the > the first one is bit shift to the left and the other is bit shift to the right. The PINx Register is where you reseave the pin input to do what you want in the software side of the code. The PORTx Register is where you turn on with pin you want to use. For the ATtiney85 this registry is named DDRB. The Data Direction Register(DDRx) tells the chip if the pins are input or output if you set the pin you want to 1 it is a out with this DDRx if it is 0 in is input. The registers are like light switch that turn on and off functions on the chip set. With the ATtiny85 to do I/O pin you have to configure three registers. Click here to view the ATtiny85 datasheet. If you want to know more about the chip you are using, you can go to the full datasheet and read about fuses, and registers that the chip has and how to use it with program examples in C and machine language. The ICE don't power the Chip set that you program. When Programming the chip you need to power it with a standalone voltage source.
0 Comments
Read More
Leave a Reply. |