EmbeddedRelated.com
The 2024 Embedded Online Conference

PIC16F452 WDT time-out problem

Started by El75 in comp.arch.embedded20 years ago 1 reply

Dear Sirs, I've developed a product on basis of PIC16F442. On some conditions my unit goes to the SLEEP mode and wake up from the SLEEP on WDT...

Dear Sirs, I've developed a product on basis of PIC16F442. On some conditions my unit goes to the SLEEP mode and wake up from the SLEEP on WDT time-out or on an interrupt. The postscaler,I've taken, is 64, giving us 64 * 18msec = 1.152sec. I tested it with MPLAB ICE-2000 and found everything is OK. But then I burned the real chip(I have only PIC16F452) and found that the WDT time-out is 1...


PIC 18f4550 and Hi-tech PRO compiler

Started by joolzg in comp.arch.embedded14 years ago

Right just started a little project using the 18f4550 for usb and wanted to save some data in the internal eeprom. Easy or so i thought, as i...

Right just started a little project using the 18f4550 for usb and wanted to save some data in the internal eeprom. Easy or so i thought, as i am using Hi-tech PRO 18 V9.63 PL3 i thought i would use th eeprom_read and eeprom_write commands. So to test i used MPLAB and put a message in the eeprom and checked my read routine, OK, and so as my checksum failed i tested the write routine and NOT...


PIC32 starter kit impressions

Started by Joseph H Allen in comp.arch.embedded16 years ago 2 replies

I got PIC32 starter kit today. Here are some impressions: - Comes with eval version of C32 C-compiler with 64KB code size limit. C32 is...

I got PIC32 starter kit today. Here are some impressions: - Comes with eval version of C32 C-compiler with 64KB code size limit. C32 is actually called C32-gcc, so it's a gcc derivative. The source is on the website, but who knows if it's recent or complete. - Hardware debugging (breakpoints, goto cursor) works in MPLAB on this little board, but I found that sometimes it gets int...


Help newbe with 16F87

Started by Anonymous in comp.arch.embedded16 years ago 4 replies

Can't get it to light a LED. I'm using MPLAB with CC5X compiler and WinPIC programmer with an RCD programmer. Here's the program: Compiles and...

Can't get it to light a LED. I'm using MPLAB with CC5X compiler and WinPIC programmer with an RCD programmer. Here's the program: Compiles and programs with WinPic ok. void main( void) { OSCCON= 0x7C; PORTB = 0x00; TRISB = 0x00; //outputs while (1) { PORTB=1; } } Here's the configure word from WinPic: Internal RC osc, WDT Disabled: 11 1111 1111 1000 Usi...


PIC24HJ64GP206, ICD2 -> ICD0083: Debug: Unable to enter debug mode.

Started by Anbeyon in comp.arch.embedded17 years ago 2 replies

Hi I hoping some one might be able to point me in the right direction. I am using a PIC24HJ64GP206 with an ICD2 connected to PGD2 and...

Hi I hoping some one might be able to point me in the right direction. I am using a PIC24HJ64GP206 with an ICD2 connected to PGD2 and PGC2. When I tell the ICD2 to connect to the target it does so without error, identifies the chip etc.... see below; Connecting to MPLAB ICD 2 ...Connected Setting Vdd source to target Target Device PIC24HJ64GP206 found, revision = Rev 0x3002 ...Readi...


C18 basic question

Started by Dennis in comp.arch.embedded13 years ago 26 replies

Hi Guys, I'm pushing along learning C (using MPLAB + C18 on an 18LF14K22). I've what I think is a pretty basic problem..... I'm reading a 14...

Hi Guys, I'm pushing along learning C (using MPLAB + C18 on an 18LF14K22). I've what I think is a pretty basic problem..... I'm reading a 14 bit result back from a I2C sensor and have managed to get a sensible result stored in a variable called Data[], I've defined this as follows: unsigned char Data[2]; //Data from I2C sensor Data[0] ends up holding the high byte, Data[0] the l...


Setting configuration bits in code

Started by Nickolai Leschov in comp.arch.embedded16 years ago 1 reply

Dear friends, I have a MPLAB IDE project where configuration bits for the device are set in project options. I want all configuration data...

Dear friends, I have a MPLAB IDE project where configuration bits for the device are set in project options. I want all configuration data for the application to be contained in source code. How do I set set configuration bits in code? My CPU is PIC18F452, compiler is HI-TECH PICC-18 V8.35 PL3 Regards, Nickolai Leschov


problem facing in compiling PIC16F87 device .

Started by Kumar in comp.arch.embedded20 years ago 1 reply

I have written a program for the pic microcontroller Pic16F876 . It worked fine . Then changed my device to pic16f87 , the program is...

I have written a program for the pic microcontroller Pic16F876 . It worked fine . Then changed my device to pic16f87 , the program is not compiling can anyone help me to solve the problem . The error message is given below Error[126] C:\PROGRAM FILES\MPLAB IDE\RF_PIC_87\VER_0\PROR6-DEMO-22ND.ASM 13 : Argument out of range (not a valid config register address) Halting build on first fa...


PIC C18 External Interrupts INT0

Started by natraj20 in comp.arch.embedded13 years ago

Hello guys, Problem with the very basics. I am stuck with the external interrupt INT0 at RB0. Controller - PIC 18F47J53 MPLAB IDE, Microchip...

Hello guys, Problem with the very basics. I am stuck with the external interrupt INT0 at RB0. Controller - PIC 18F47J53 MPLAB IDE, Microchip C Compiler I could not figure out what is wrong with the following code. Kindly help me out to make this work!! #include #include #include #pragma config OSC = HS #pragma config WDTEN = OFF #pragma config


Microchip ICD 1 with USB->serial converter

Started by Ron in comp.arch.embedded20 years ago 3 replies

I have a Microchip ICD 1 in circuit programmer/debugger that I've been using for awhile now. My new computer only has USB ports unfortunately,...

I have a Microchip ICD 1 in circuit programmer/debugger that I've been using for awhile now. My new computer only has USB ports unfortunately, and the ICD is only serial. I bought one of those Belkin USB -> serial port converters, but MPLAB doesn't seem to recognize the ICD. I've confirmed the correct port and speed settings. Is there something I'm missing? Does the USB-> serial converter


Make script

Started by Nickolai Leschov in comp.arch.embedded16 years ago 12 replies

Hello! I have a project that used to be compiled via IDE. As I didn't like the IDE much, I made a 'make' script to compile it. I had to use...

Hello! I have a project that used to be compiled via IDE. As I didn't like the IDE much, I made a 'make' script to compile it. I had to use extended syntax so it will run on NT-XP, not Win98 and the like. Host OS: Windows XP Target: PIC18F452 CPU Language: C Compiler: HI-TECH C Compiler IDE: MPLAB IDE Target is an embedded CPU, so I compile code on host machine then write it to ...


"section" and "org" capabilities of PIC linkers

Started by 2Penny in comp.arch.embedded19 years ago 2 replies

Fellow CAE travelers: I'm interested in finding out if the MPLAB linker has the capability of using the "section" and "org" commands. ...

Fellow CAE travelers: I'm interested in finding out if the MPLAB linker has the capability of using the "section" and "org" commands. I've used "section" with a Borland x86, an HP 68000, and a WindRiver 68000 type linker. I've used "org" only with the HP and Windriver 68000 type linkers. I liked how they separated out executable code from data and (with the "org" command) place the cod...


free rtos for PIC18 with complete drivers

Started by CMOS in comp.arch.embedded16 years ago 2 replies

hi, i've started playing with FreeRTOS MPLAB port for PIC18 devices and it works fine. however this port does not include drivers for i2c,...

hi, i've started playing with FreeRTOS MPLAB port for PIC18 devices and it works fine. however this port does not include drivers for i2c, USB, etc. therefore im looking for some other free RTOS projects for PIC18, that has these drivers already developed. If there are no existing free rtos's with these drivers available, i might consider writing those drivers for FreeRTOS. however as there ...


i2c slave using PIC16F88. Need urgent help/opinion.

Started by Anonymous in comp.arch.embedded19 years ago 1 reply

Hi all, I am using PIC16F88 as an I2C slave. I have attached the code that I used. From the Microchip MPLAB ICD 2, I find that I am able to...

Hi all, I am using PIC16F88 as an I2C slave. I have attached the code that I used. From the Microchip MPLAB ICD 2, I find that I am able to detect the start and stop conditions. But I find that SSPSTAT is not getting set. The program is getting stuck in the "gnb" loop. From the Microchip ICD2, I can see that SSPSTAT and SSPSTAT get set after the Start and Stop condictions. But no


USART, single master (8051), multiple slave (PIC16F876) - suggestions

Started by Bill Davy in comp.arch.embedded18 years ago 1 reply

We built a machine with a CAN bus connecting modules to a CAN board in a PC. We had a useful little Laser Beam Power Meter [LBPM] board based...

We built a machine with a CAN bus connecting modules to a CAN board in a PC. We had a useful little Laser Beam Power Meter [LBPM] board based on a PIC16F876 attached to CAN. It had a debug serial port. S/w was developed on MPLAB/CCSC C. The next machine used a Cypress FX2LP (based on an 8051). It has a debug serial port. S/w was developed on Keil C. Whaddya know, we need to conn...



The 2024 Embedded Online Conference