Author Topic: AVR C  (Read 2502 times)

0 Members and 1 Guest are viewing this topic.

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
AVR C
« on: February 21, 2013, 01:22:03 pm »
Hello !
I want to learn more about AVR C programming language . I understand the basics , but I saw in more complex scripts this words :

uint8_t
voilatile
TTCR
TIMSK
TCNT

I don't know what are and what are doing .
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17830
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: AVR C
« Reply #1 on: February 21, 2013, 01:24:25 pm »
You could start by posting in the microcontroller section of the forum !
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: AVR C
« Reply #2 on: February 21, 2013, 01:25:48 pm »
Ok . Sorry !
 

Offline Kremmen

  • Super Contributor
  • ***
  • Posts: 1289
  • Country: fi
Re: AVR C
« Reply #3 on: February 21, 2013, 01:34:51 pm »
Like the man said, there is a better forum for this. Anyway, you have a lot of study in your future. Suggested reading:

"uint8_t" - one of the machine architecture independent typedefs in <stdint.h>, a standard toolchain header file. Study AVR-libc runtime library, documented at: http://www.nongnu.org/avr-libc/

"volatile" - C keyword; study C language tutorials and guides, available in Interweb and all over the place.

TTCR, TIMSK, TCNT - processor peripheral register defines in <avr/io.h>. Study the relevant MCU documentation from Atmel, freely available at http://www.atmel.com. For example, the popular ATMega328 used in Arduino, can be found here: http://www.atmel.com/Images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet.pdf
Nothing sings like a kilovolt.
Dr W. Bishop
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: AVR C
« Reply #4 on: February 21, 2013, 01:42:27 pm »
I started a new topic here : https://www.eevblog.com/forum/microcontrollers/avr-c-14347/ .
 
@ Kremmen : Thanks ! I will try to do something with that commands .
 

Offline MikeK

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: AVR C
« Reply #5 on: February 21, 2013, 07:20:24 pm »
The guys at AVRFreaks.net can probably provide help.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf