A compiler transforms code written in a source language to a (binary) target language.

learn more… | top users | synonyms

3
votes
3answers
95 views

PIC warning 364 related to initialization of const

There are no answers to this on the internet that I could find, and I've looked twice over the last 4 months. In MPLab v8.88 using the Hi-Tech ANSI C Compiler, I have this line of code: ...
1
vote
0answers
17 views

dsPIC30F: Link assembler project with XC16 in command line mode

I have an assembler project that compiles and links fine with MPLABX. Now I am trying to build it from the command line. Attempt to use the command line from MPLABX fails. When I am calling: ...
1
vote
2answers
108 views

How does a specific pin in a port change its state (PIC Microcontroller)? Software vs Hardware

How does, for instance PortB.B0 = 1; command change the state of a specific pin in a microcontroller. Microcontroller usually has a 8 bit data line, meaning it will write and read from the entire ...
0
votes
3answers
123 views

PIC microcontroller memory limitations

I am trying to program a PIC10f202 using the XC8 compiler to compare the value of a timer to a variable which will be a function of a look-up table. Here is a sample code : ...
3
votes
3answers
93 views

Why IAR Compiler?

I just saw an Application Note from Atmel about how to compile some code in IAR and I wonder, why would anyone use an external compiler if Atmel already provides the Atmel Studio, with a Visual Studio ...
0
votes
0answers
34 views

How to change PORTX register in other place of program?(Codevision & GCC)

i have a question about GCC and CodeVision: How can i changing PORTX register in other place of program. as you know, normally we setting it at Main function inside DDRX rigester for example like ...
0
votes
0answers
55 views

How can i port this Lib(ProGFX) to CodeVision(compiler)?

i want to port this library to CodeVision(compiler). http://progfx.org/ How can i do it?
2
votes
2answers
163 views

Memory management problems with ATTiny85

The setup is as follows: I have a little program to drive single color 8x8 led matrix using 595 shift registers that are supplied with data by ATTiny85 through USI as SPI Master. I upload program to ...
0
votes
0answers
43 views

IDE for STM32F107VCT6 MCU

I'm kind of new to this stuff so bare with me... :) I want to buy the following board http://www.mikroe.com/easymx-pro/stm32/ just to play around with the arm processor for studying purposes. ...
1
vote
1answer
87 views

AVR-GCC: Ports Undeclared when compiling

My Setup I'm running Ubuntu 12.10, and I want to be able to use gcc and avrdude to compile and program my ATmega328. I followed this Ladyada tutorial: Ladyada AVR Tutorial Everything installed ...
1
vote
2answers
180 views

STM32 ARM header files for use with Eclipse and GCC

I'm a mechatronics (mechanical and electrical) engineering student and want to learn how to program ARM microprocessors. I've used Atmel ATMegas previously. I'm using a mac and being a student I ...
1
vote
1answer
57 views

Get bytes from a short long in C18

I'm using the C18 compiler and need to get the three bytes of a short long from MSB to LSB. I'd say I could use this: ...
3
votes
1answer
85 views

Integers >9999 in PIC C18

In this answer, I made a function to convert an integer to an ASCII string: ...
5
votes
5answers
485 views

Integer to ASCII in C18

I'm writing code for a PIC18F46K22 using the C18 compiler. I want to write the value of an integer \$n\$ in ASCII over the USART to my PC. For \$n<10\$, it's easy: ...
5
votes
3answers
90 views

How to discover memory overflow errors in the Arduino C code?

Several times I had some suspicious outputs on the Serial Monitor after uploading code to the Arduino: like eternal output of whitespaces or suddenly cut of strings or scrambled strings. Because ...

15 30 50 per page