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
0
votes
2 answers

proteus error: Invalid opcode 0x000D at PC=0x0118

I wrote this code on Bascom but as I run and click on keypad on Proteus I see this error: Invalid opcode 0x000D at PC=0x0118 this is my code on Bascom $regfile = "m16def.dat" $crystal = 1000000 Config Kbd = Portd , Debounce = 30 Config Lcd = 16 *…
Amin Qassemi
  • 99
  • 1
  • 1
  • 9
0
votes
1 answer

Does a const array definition with initialization in C require a length parameter?

const int array[] = {1,2}; const int array[2] = {1,2}; Both compile and work with no problems. Is there any difference in these ? (I use Codevision, but that shouldn't really matter)
NikkyD
  • 2,209
  • 1
  • 16
  • 31
0
votes
1 answer

Found something unclear in making codevisionavr code

I got a code example which says like this: DDRA = (1<
Anthony Lauly
  • 319
  • 2
  • 5
  • 17
0
votes
2 answers

AVR PWM configuration

I know this is silly but I got really confused. I want to make a PWM pulse with 3 modes on Atmega16: 1- 1Khz with Duty cycle 100% 2- 4Khz with Duty cycle 100% 3- 1Khz with Duty cycle 50% I was away from AVR for almost 2 years and I forgot…
Ahmad Afkande
  • 137
  • 2
  • 14
0
votes
1 answer

in codevision editor For category code like(region)

In many language like java,c#,... , we use //region Variables . . . //endregion for category code. what we use instead "region" in CodeVision editor.
-1
votes
1 answer

Why am I getting undefined symbol 'sprintf' in CodeVisionAVR using C language?

I'm coding in CodeVision AVR using C, I want to count from 0 to 100 (Counter) and then display it on a LCD in Proteus. While choosing "Build All" in CodeVision, I get this error. I have no clue why. undefined symbol 'sprintf' The code: #include…
fzsdi
  • 13
  • 1
  • 9
-1
votes
2 answers

CodevisionAVR SHT11 Read just Temperature or Humidity

I tried to personalize shtxx library but there is a problem with this code. When I run it lcd stuck on "Hello" but if I comment readHumi or readTemp in while, program runs with no problem. Just when both is not commented program gets stuck on second…
-1
votes
1 answer

How can I call same ISR for two different interrupts in codevisionavr?

I'm trying to use external interrupts int0 and int1 calling the same ISR. Is there any method in codevisionAvr for this purpose?
-2
votes
1 answer

An Err in Codevision AVR

im coding the calculator in codevision and i get this Err : Error: C:\cvavr\BIN\Thrust Calculator\TC.c(112): ')' expected this err related to this part of my code (4th line from bot): intnum1 = (int atoi(num1[q])) * 10^(i-q-1) + intnum1; What is…
-2
votes
1 answer

digital to analog conversion

I have a SRF04 distance module and I don't want to use it with it's digital output. So I have to convert it to analog. To do that I bought a small AT-tiny micro controller. Can help me how can I convert digital to analog. I'm using codevision-AVR…
fdmx
  • 1
-3
votes
1 answer

how to open lib file library in c laguage how to do this?

i want to open "alcd.h" library (it's about working with character lcd in AVR microcontroller that it is a "C library"). how should i open this library? i open it with txt and Codevision, but it show me wrong codes.
hadimargo
  • 5
  • 2
-3
votes
1 answer

C PROGRAMMING CODEVISION AVR

i cant understand some lines of this code please describe me what theise code do: this code is witten in atmelstudio and is a sample code of AVR443 application note of ATMEL unsigned char *pTemp; fastTemp.word = ((PIN_HALL & hallMask)>>1); pTemp =…
1
2