Questions tagged [codevisionavr]

Use this tag for questions related to CodeVisionAVR (aka CVAVR) : a commercial C Compiler for Microchip AVR® microcontrollers. It has its own Integrated Development Environment (IDE) for developing and debugging embedded Microchip AVR® applications.

CodeVisionAVR (CVAVR) is a commercial C Compiler for Atmel AVR® microcontrollers. It has its own Integrated Development Environment (IDE) for developing and debugging embedded Atmel AVR® applications.
CodeVisionAVR features an Automatic Program Generator (CodeWizardAVR) for almost all the AVR chips (8-bit Atmel AVR® and XMEGA Microcontrollers). CodeVisionAVR, besides it’s own IDE, can also be used as an Extension fully integrated in Atmel Studio 7.
It has support for some ATtiny chips, enhanced graphic library for many TFT LCD, OLED controllers, improved LCD Vision font/image converter/editor.
Author: http://hpinfotech.ro

28 questions
2
votes
0 answers

How do I make an LED connected to PORTB.4 alternate between very bright and dark every 2 seconds using ATmega128?

How do I make an LED connected to PORTB.4 alternate between very bright and dark every 2 seconds using ATmega128? If you press the switch using the external interrupt function using the ATmega128, the LED connected to PORTB.4 changes brightness…
halli
  • 21
  • 1
2
votes
0 answers

why atmega32 recieves just the last 16 characters of string?

i use an atmega32 to communicate with SIM808. when module sends a string that contains more than 16 characters, atmega32 receives only the last 16 characters. it works fine with less characters. i use a 16*2 alphanumeric LCD to show the received…
Hassan V
  • 21
  • 3
1
vote
0 answers

keypad function return wrong number

in ScanKey function which is for keypad 3*4 its work well until numbers length under 4 it works like this number = (number * 10) but for a number like this 123456 which have more than 4 number it gives me other numbers what should I do? my program…
1
vote
2 answers

error function declared but never defined

I have added a library to my c project in codeVision AVR. when I want to use it's functions receive this error: function 'function name' is declared but never defined. here is my code: #include "pid.h" #include PidType _pid; void…
1
vote
0 answers

Do i need to store a function parameter to RAM?

assume the function void foo(uint8_t value) { somearray[some_idx] = value; } CodeVision produces the following ST -Y,R26 // the parameter "value" is in R26 ; value -> Y+0 LDS R30,_some_idx LDI R31,0 SUBI R30,LOW(-_somearray) SBCI…
NikkyD
  • 2,209
  • 1
  • 16
  • 31
1
vote
2 answers

Internet of Things : ESP module Wifi Ip address

as you can read in title I'm making a super simple IOT (Not really) and using a esp8266 and want to make it connect to my home wifi network and make a communication between a android app and the module (android app connects to home wifi) Note : Iam…
Azrideus
  • 85
  • 2
  • 13
1
vote
1 answer

How to add a new library to Codevision AVR?

I want to include and in my source code in CodevisionAVR, how can I add these libraries? is it possible to add it permanently to the program or I must copy these libraries to my source code's directory every time I want to use them?
Farhood
  • 391
  • 2
  • 4
  • 16
0
votes
0 answers

Implementing Admin menu in Codevision project with RFID-RC522 reader and ATMEGA164a, trouble in enrollment of key tags

I'm trying to make a project in Codevison, with ATMEGA164a, to be more specific, a contactless card reader with RFID-RC522. This project requires two interfaces, User-'U' and Admin-'A'. I started to implement the Admin menu, which allows to…
0
votes
0 answers

Input capture timer 1 atmega 328p to calculate duty cycle

I am new to MP programming and I am working on a project with codevision program, which requires to: Connect potentiometer at A0. Generate a PWM signal with an equivalent average DC voltage to the measured value of the voltage of the…
0
votes
1 answer

Controller received data whilst busy

I am trying to use interrupts in code vision for proteus. INT0 for increasing the counter value and INT1 for decreasing it. for that purpose I declared two funcions interrupt [EXT_INT0] void ext_int0_isr(void) and interrupt [EXT_INT1] void…
Benyamin
  • 1,008
  • 11
  • 18
0
votes
1 answer

I am trying to make a simple guitar tuner on a atmega164 and i cannot make the code for reading a frequency on CodeVisionAVR

I am looking for some guidance for my code. #include // Declare your global variables here #define BUTTON1 PINC7 #define Freq_e 0xEF #define Freq_B 0x9F #define Freq_G 0xDE #define Freq_D 0xBD #define Freq_A 0xF7 #define Freq_E…
RotterPol
  • 5
  • 4
0
votes
2 answers

My guitar tuner code in CodeVisionAVR using an ATmega164 can't handle more than 4 samples

I'm designing a guitar tuner through CodeVisionAVR and using an ATmega164 microchip for my university project. If i set the number of samples any higher than 4, the chip LEDs will just flash continuously and the code won't get past the pin reading…
0
votes
1 answer

I'm designing a guitar tuner through ATmega16p and CodeVisionAVR and i just can't get my code to run

I'm designing a guitar tuner through an atmel mega16 processor and CodeVisionAVR for my university's second project. I have connected a mono jack to the processor's PINA.7 (ADC converter) and GND. I have 7 LEDs (PORTB.0..6) that should turn on…
0
votes
1 answer

Char array can't save chars as its members. Password system using ATmega8

I was work with system, that read some symbols from the specific keyboard, pass it to the ATmega8, and then pass it to the display one-by-one(this step work correctly), but if I want to show all symbols array, I discovered that the dynamic array on…
0
votes
2 answers

How to declare a matrix that is stored in PROGMEM

I am trying to write a header file that will drive a LED Matrix but I'm stuck with a syntax error which I cannot resolve I've already added " ; " everywhere I thought it was necessary and checked…
Spam97
  • 3
  • 1
1
2