PIC templates

Started by Dennis in comp.arch.embedded12 years ago 9 replies

Dummies question here... I'm starting out on a new PIC device 18LF14K22, using MPLAB / C18. Where can I find templates with config bits / int...

Dummies question here... I'm starting out on a new PIC device 18LF14K22, using MPLAB / C18. Where can I find templates with config bits / int vector definitions etc all ready to go? I poked around on Microchips site with no success. Thanks


Magenta Icebreaker kit?

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

Hi newbie here, I am doing GCSE technology and have been given and icebreaker kit to constuct which I have done but am having...

Hi newbie here, I am doing GCSE technology and have been given and icebreaker kit to constuct which I have done but am having problems programming the chip, i have installed both mplab and the icebreaker software but to be honest i just don't know what to do next, there are very little instructions with it. can anyone point me in the right direction? thanks


PIC18 Interrupts

Started by Anonymous in comp.arch.embedded17 years ago 3 replies

Hello all. I'm a newbie in the realm of micro programming. I'm using MPLAB C18 with the PIC18F452 and PICDEMO 2 Plus board. I can't, for the...

Hello all. I'm a newbie in the realm of micro programming. I'm using MPLAB C18 with the PIC18F452 and PICDEMO 2 Plus board. I can't, for the life of me, figure out how to do an interrupt routine! I've used the buzzer interrupt sample that came with the ICD2 software, but have been unable to modify it to suit my needs. What I want to do is wait for a button to be pressed to start my rout...


I need Help....Generating a square wave with the dsPIC33FJ256GP710

Started by embcontrol in comp.arch.embedded12 years ago 3 replies

Hello everyone... I just got a explorer 16 board from Microchip. It brings two Plug-In-Modules (PIM), the PIC24FJ128GA010 and the...

Hello everyone... I just got a explorer 16 board from Microchip. It brings two Plug-In-Modules (PIM), the PIC24FJ128GA010 and the dsPIC33FJ256GP710. I also have the debugger/programmer ICD3. I have installed MPLAB C30 in my computer as well. Now that I have everything I need (According to microchip)to start programming, I need some guidance with regard to starting this project. Ba...


Microchip PICKit3

Started by Les Cargill in comp.arch.embedded7 years ago 6 replies

Are these things just utterly useless? It would appear* that the USB handling in MPLAB-X is poorly tested. Might be that "grab reset on the...

Are these things just utterly useless? It would appear* that the USB handling in MPLAB-X is poorly tested. Might be that "grab reset on the DUT" is the problem. *can't really tell which end of the cable is at fault - although the "IDT" grabs it nine out of ten falls. There is even an app note not to use the PICKit3 "for production". An ICD3 works just fine. -- Les Cargill


How ordinary embedded differs from RTOS code?

Started by Madhanbm in comp.arch.embedded16 years ago 8 replies

frnds, my query may sound blunt but still ur replies value more to me. pls. help me in clearing the difference between working on...

frnds, my query may sound blunt but still ur replies value more to me. pls. help me in clearing the difference between working on ordinary embedded systems( i worked with PIC 16F877x series MPLAB IDE) and RTOS. Thanks, Madhan.B


Avoiding a short circuit at boot up

Started by in comp.arch.embedded15 years ago 11 replies

I'm very new to working with microcontrollers, I only started using them properly within the last week. I'm using the PIC16F684...

I'm very new to working with microcontrollers, I only started using them properly within the last week. I'm using the PIC16F684 in conjunction with MPLAB and PIC C. One of my pins on the PIC chip is connected to the output from an encoder. The output from the encoder will always be either 5 V or 0 V, it will never be high impedence. When power is applied to my ci...


writing ISR for UART

Started by sohagiut in comp.arch.embedded15 years ago 26 replies

hy, i am not very expert in C. Can any one give me a sample example on ISR for UART.i am using MPLAB with c18. how to write IRQ in ISR. also how...

hy, i am not very expert in C. Can any one give me a sample example on ISR for UART.i am using MPLAB with c18. how to write IRQ in ISR. also how can i add "case" in side ISR? can any one give me any tips or any link. thanks in advance


The big picture - Cheap chips, cheap/free compilers?

Started by mc in comp.arch.embedded18 years ago 11 replies

Greetings, I've done a good bit of microcontroller programming in the past but have been mostly away from it for a few years. When last...

Greetings, I've done a good bit of microcontroller programming in the past but have been mostly away from it for a few years. When last active, I was mostly using PICs with MPLAB and assembly language, and some 8051-architecture chips with ASM51. I have a PICstart-Plus and, at work, a universal programmer. Mostly, I do small, simple things that involve precise timing. That is, my m...


Help with GPSIM watchwindows

Started by Anonymous in comp.arch.embedded14 years ago

Hello guys, I am not sure if this is the right place to post, but I am about ready to give up on gpsim and find a windoze machine and use...

Hello guys, I am not sure if this is the right place to post, but I am about ready to give up on gpsim and find a windoze machine and use MPLAB again. (I really don't want to and am trying to use gpsim). I am running a ubuntu machine and I have gpsim installed. I compiled my asm file using gpasm and then loaded gpsim with gpsim -s myfile.cod The program comes up fine, however I am not...


getting started on C programming on PIC16F628A, PIC16F690, OR PIC18F2620

Started by ssylee in comp.arch.embedded15 years ago 4 replies

I'm trying to get started with C programming on either one of the PIC microcontrollers in MPLAB IDE using C18 compiler (or any other C compiler...

I'm trying to get started with C programming on either one of the PIC microcontrollers in MPLAB IDE using C18 compiler (or any other C compiler that Microchip makes), however, I'm having some trouble drafting a source code that has, for example, LEDs flashing or display a "Hello World" message through printf() and in such fashion that I can see it on a host computer. Does anyone know any good...


How to view the Data memory.......

Started by sivaramakrishna in comp.arch.embedded14 years ago 1 reply

Dear all, Can any one please help me to view the data memory using MPlab ide? I store an array of size 256. I need to view the...

Dear all, Can any one please help me to view the data memory using MPlab ide? I store an array of size 256. I need to view the data. Thanks in advance Siva


"C" source code for I2C slave PIC16F81x

Started by Tesvit in comp.arch.embedded18 years ago 24 replies

Hi All, I have to write an PIC16F819 based application that act as I2C slave device. As for compiler I will use HI-TECH PICC together with...

Hi All, I have to write an PIC16F819 based application that act as I2C slave device. As for compiler I will use HI-TECH PICC together with MPLAB. Could anyone, please, send me sample "C" code for that. I have no assembler knowledge :-( Any link/source/hint would be appreciated. Thank you, Tesvit.


PIC versus AVR

Started by mc in comp.arch.embedded16 years ago 98 replies

I don't want to start a religious war, but could a few knowledgeable people give me their impressions of the relative advantages of PIC vs AVR? ...

I don't want to start a religious war, but could a few knowledgeable people give me their impressions of the relative advantages of PIC vs AVR? Assume that I will be using both, to some extent, for some time, and want to know what their relative advantages are. Throw in MSP430 too if you'd like. I'm mostly using PICs right now but am stuck on the fact that MPLAB requires you to have w...


32-Bit Microcontroller for New Project

Started by Anonymous in comp.arch.embedded14 years ago 44 replies

I'm about to embark on a new project that will require a 32-bit microcontroller. I've spent the last month evaluating the merits of the various...

I'm about to embark on a new project that will require a 32-bit microcontroller. I've spent the last month evaluating the merits of the various choices architecturely, and have a pretty good idea of what's out there. It's come down to development environments, and I'd like to get some first-hand reports from people on this group. The three choices on my short-list are: Pic32 and MPLAB ...


MPLAB IDE v7.10 [Logic Analyzer]

Started by Thomas Magma in comp.arch.embedded17 years ago 1 reply

Wow!! What a difference from the old Microchip simulator. The speed improvement is night and day, and the new logic analyzer is very...

Wow!! What a difference from the old Microchip simulator. The speed improvement is night and day, and the new logic analyzer is very handy. I'm having a few problems with the Logic Analyzer settings though. The triggering doesn't really make sense to me and it won't let me enter anything into the Trigger PC test box. Also it only has one selection for the Time Base but the documentation say...


Programming dsPIC33FJ32GP302

Started by embcontrol in comp.arch.embedded12 years ago 12 replies

I am trying to program a dsPIC33F chip with a programmer from microchip (ICD3 debugger and programmer), and I am also using the explorer...

I am trying to program a dsPIC33F chip with a programmer from microchip (ICD3 debugger and programmer), and I am also using the explorer 16 development board also sold by microchip. So far, all I have is MPLAB as the development environment but my back ground in assembly language is very weak. I am looking for a C compiler that it's free or reasonable in price to be able to program the dsPIC33...


linux toosl for PIC32MX development

Started by Randy Yates in comp.arch.embedded12 years ago 5 replies

Hi, I'm going to be doing some PIC32 development and I'd love to do it under linux if I'm able. We have a PIC32MX and the Microchip ICD2...

Hi, I'm going to be doing some PIC32 development and I'd love to do it under linux if I'm able. We have a PIC32MX and the Microchip ICD2 "hockey puck" JTAG. I don't care so much about an IDE - I'd rather build my stuff using emacs/gnumake. But what I need are: 1. A cross-compiler/assembler/linker that runs under linux 2. The debugger. Keep in mind we also have the MPLAB software ...


PICC variable relocation

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

Hi I'm using the Hi-tech PICC-18 compiler together with a MPLAB ICD 2. The ICD 2 reserves a few bytes of the data memory for itself. The...

Hi I'm using the Hi-tech PICC-18 compiler together with a MPLAB ICD 2. The ICD 2 reserves a few bytes of the data memory for itself. The thing is that the linker doesn't understand this and tries to store my own variables at the same adress. My questions is: How do I "prohibit" PICC-18 from using a certain area of my data memory? Regards Erik N=E4slund


Interrupt not firing on PIC18F

Started by namezmud in comp.arch.embedded18 years ago 1 reply

I've started tinkering with a PIC18F4680 (with CAN bus) using microchips MPLAB C18 C compiler. I've been beating my head against a problem for...

I've started tinkering with a PIC18F4680 (with CAN bus) using microchips MPLAB C18 C compiler. I've been beating my head against a problem for many hours now :evil: . I can't get interrupts to work. I have tried, TMR0, TMR1 and INT0. I have verified that TMRnIP, TMRnIE, TMRnIF and GIEH & IPEN are all HIGH yet my ISR does not get run. If I clear TMRnIF in the main loop TMRnIF is set aga...