Questions tagged [hi-tech-c]

8 questions
4
votes
3 answers

Do we have a '@' operator in embedded C or embedded C++? If yes, what is the explanation for the below code?

Code: static volatile unsigned char TMR0 @ 0x01; static volatile unsigned char PORTA @ 0x05; static volatile unsigned char PORTB @ 0x06; static volatile unsigned char PORTC @ 0x07; This code is from the HT-PICC compiler, pic.h library file for…
Electro Voyager
  • 107
  • 1
  • 8
1
vote
1 answer

Hitech C Syntax

Can someone explain me this syntax? It comes from the Hi Tech C include file /* STATUS bits */ static volatile bit IRP @ (unsigned)&STATUS*8+7; static volatile bit RP1 @ (unsigned)&STATUS*8+6; static volatile bit RP0 @…
tcop
  • 381
  • 1
  • 2
  • 11
1
vote
2 answers

conflicting declarations for variable, type redeclared

I have these errors and a warning... I'm quite new to programming and I have no idea what it means. Can you guys take a look at this and tell me what I'm doing wrong? Thanks in advance Errors and warning: Looplicht v2.0.c:226: warning: (361)…
ChThy
  • 221
  • 1
  • 4
  • 12
0
votes
1 answer

How to fix 68HC11 Compiler from making invalid JMP/BRA codes

I am compiling C code for programming an EPROM for a device. The compiler being used is the Hi-Tech C Compiler. I believe it is version 7.80. When I (Re-)Make my code, it produces a Binary (*.BIN) file for flashing to the EPROM. I have found that…
Deluril
  • 13
  • 1
  • 5
0
votes
3 answers

Led on/off using PIC 16f777a

I am doing an exercise using push button. When the button is pressed once the led starts blinking and when it is pressed again it stops. When I tried the led is blinking on 1st press but it is not stopping on 2nd. I am using PIC16F877A MCU with…
Tinu
  • 19
  • 4
0
votes
0 answers

Using HiTech C Libraries with MPLAB MCC18

Has anyone tried using the Hi-Tech PIC18 C libraries with the MPLAB MCC18 compiler and linker? We're a small group that has been handed a legacy project which was written in MCC18. We are interested in employing the more standard and extended…
user3042888
  • 1
  • 1
  • 3
0
votes
1 answer

Hi-Tech C Compiler: #define: "taking the address of this object is illegal"

I'm trying to compile code for a PIC16F77 microcontroller using the Hi-Tech C compiler. The code below gives an error on the last line in the snippet below. The errors are: Error [195] C:\...\.c; 8.1 expression syntax Error [201] C:\...\.c; 8.8…
Jodes
  • 14,118
  • 26
  • 97
  • 156
-1
votes
3 answers

'error ";" expected' when initialising multiple structs

I have typdef'd a struct, and immediately below this I've simultaneously declared and initialised the variables I want using the typedef'd struct. When I try to compile the code, there are no error messages relating to 'hi_aud', but the rest of the…