Category : atmel

Atmel studio add some code for assembler. My interrupt vectors is ignored. Who knows why this is happening? main.cpp #include <avr/pgmspace.h> #define k 2 //1-6 max 936ms on k=6 #define ts 13 uint8_t cstr[14]={‘ ‘,’H’,’0′,’2′,’6′,’P’,’0′,’5′,’2′,’W’,’1′,’0′,’4′,0}; uint16_t BTN_DELAY_TIME =1000; #define ival(i) (uint16_t) ((i)*k*ts) #define ps100(i) (uint8_t)((((((i)*ts)>>2)*k)>>3)/3) #define ps10(i) (uint8_t) ((ival((i))-ps100((i))*100)/10) #define ps1(i) (uint8_t) (ival((i))-ps100((i))*100-ps10((i))*10) static const ..

Read more

Development Environment Controller: Atmega8 Language: C++ (-std=gnu++14 flag added ) IDE: atmel studio 7 Note: Most of the std:: libraries like ostream ,string ,cout, are not available with this minimal c++ support. almost similar functionality has been implemented ,but the function call is different printf1(<object>, … ); printf1(Lcd4bit2,"Val:",x,’=’,5,"+",3.4); I would like to change the code ..

Read more

I have been having a terrible time getting Serial communication working on the SAM R34 chip using ATMEL Studio 7. Normally when asking I get the response "Check the example" (Spoiler alert, there is no example) Anyhow, The code I have and I got from an example is: #include <asf.h> #include "sio2host.h" #include "lorawan_app.h" #include ..

Read more