Quantcast
Channel: MPLAB C18 Compiler
Browsing all 475 articles
Browse latest View live

C18 v2.10 installation error on Windows 10 (rocotocloc)

Hello, I am facing a problem when I try to install C18 compiler v.2.10 on Windows 10. I know this is a very old version of the compiler but it's the one I have the license for. After that I...

View Article


Problem with UART string receive (Stygian)

Hello Everyone, I'm facing with a problem, when I try to receive string with UART. I'm using a PIC18LF26K22 and C18 3.47. Transmit if working fine(single and string), and also when i just want to...

View Article


Struct of bits having size larger than Char (reinhart36)

Hello, I see that the C18 compiler allows me to compile the struct shown below, but since I've never seen a data structure like this described on the web (i.e. size greater than Char), I'm paranoid...

View Article

ADC programming for PIC18F45K22 (ujjwalrathod007)

I am writing the following code and have two questions...1.My channel 1 (RA1-port A pin) connected with potentiometer. My ADC values do not show up on PORT C LEDs. 2. How to access specific bits from a...

View Article

About library support. (ujjwalrathod007)

I want to use printf function to display integer values for c18. I am including stdio.h file but still it shows me error. Also I am using hex file to load on a programmer software. when I build the...

View Article


Just getting started with C18. (nigelwright7557)

I have found a few problems and learned a few things about the compiler.I am currently working on a USB oscilloscope.For some reason for/next loops don't work and get stuck in a loop.I was finding my...

View Article

Switch/ button debounce source code (Leo738)

I’ve cobbled a switch/button debounce function which others may find useful. I know there have been previous posts in the forum on this subject but this might make it easier for others. It will...

View Article

Lines disappearing during compilation? (jcoppens)

Surely this must be my fault... But I've no idea what causes this.I have a small routine which samples a pin for a 1-wire device: char count, b = 0; for (count = 7; count >= 0; count--) { b...

View Article


USB MSD Host More than one file open (wilkie)

APOLOGIES THIS IS IN THE WRONG SECTION! I HAVE REPOSTED IN PIC24. PIC 24FJ256GB106 MPLAB 8.92 MLA _v2013-06-15 XC16 1.21B My project is a data logger, which until now is working fine. I have a Log file...

View Article


Incomprehensible compilation result. (Andrew_miksys)

Hello,I am looking for an error in the program because it dosn't work as it should.I noticed a strange code in Disassembly listing.Why is the first IF command compiled into such a code??? Definitions...

View Article

HTC equivalent of EEPROM macros (naeem1234)

Hi everyone I am porting an old code which was compiled with HTC compiler to the MCC18 v3.47 compiler for device PIC18F452. Can anyone tell me what is the equivalent of EEPROM macros for initializing...

View Article

Just getting started with C18. (nigelwright7557)

I have found a few problems and learned a few things about the compiler.I am currently working on a USB oscilloscope.For some reason for/next loops don't work and get stuck in a loop.I was finding my...

View Article

Switch/ button debounce source code (Leo738)

I’ve cobbled a switch/button debounce function which others may find useful. I know there have been previous posts in the forum on this subject but this might make it easier for others. It will...

View Article


Lines disappearing during compilation? (jcoppens)

Surely this must be my fault... But I've no idea what causes this.I have a small routine which samples a pin for a 1-wire device: char count, b = 0; for (count = 7; count >= 0; count--) { b...

View Article

MPLABX/PICkit3 erasing EEPROM (Giacomo)

In my project with a PIC 18F26K22 I need to store some parameters in EEPROM.Everything works fine until I reprogram the CPU; after I program a new code, the EEPROM gets erased. In the Project...

View Article


PIC18f24K40: understanding of ADC Precharge time and Acquisition time (kadlag)

Hi, In Project, i am using two channel ADC (10-bit resolution). I have configured it and tested it. it seems working fine. but didnt get clear idea about precharge and acquisition time. I went through...

View Article

Problem with pow() (Bouwser)

Hello, I am having difficultly using the pow() function. I am dealing with two issues. I am using the C18 compiler v3.36 1. I can't get the pow() function in its simplest form working. I just want to...

View Article


Error: syntax error - I am confused (jkeeeng)

Hi, I am confused, I am trying to find syntax error in the following lines: char Radio_ConfigurationArray = tRadioConfiguration.Radio_ConfigurationArray; <<< LINE...

View Article

Switch/ button debounce source code (Leo738)

I’ve cobbled a switch/button debounce function which others may find useful. I know there have been previous posts in the forum on this subject but this might make it easier for others. It will...

View Article

Lines disappearing during compilation? (jcoppens)

Surely this must be my fault... But I've no idea what causes this.I have a small routine which samples a pin for a 1-wire device: char count, b = 0; for (count = 7; count >= 0; count--) { b...

View Article
Browsing all 475 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>