Noobie needs help with PIC18 assembly

Started by allenbv1 in Piclist15 years ago 3 replies

Hi, I am very new to PIC18 and PIC in general. And I am having trouble understanding some assembly from a demo program. ...

Hi, I am very new to PIC18 and PIC in general. And I am having trouble understanding some assembly from a demo program. Can someone please explain what F and W are in the 2 lines of code below? I am pretty sure that they are reserved registers but either


PIC18 Series C Compiler

Started by Anonymous in Piclist16 years ago 4 replies

What recommendations do people have for a C complier for the PIC18 series. I want to be able to EASILY handle ADC and serial I/O. ...

What recommendations do people have for a C complier for the PIC18 series. I want to be able to EASILY handle ADC and serial I/O. The factors are: -Ease of use -Learning time -Price I have no more than a week to learn what I need to know once I get a


BASIC-crc16

Started by Eirik Karlsen in Piclist16 years ago

Anyone fluent in both PIC18-asm and BASIC...and got some time to kill? If so I've got a 40-line PIC18 crc16 generator routine...

Anyone fluent in both PIC18-asm and BASIC...and got some time to kill? If so I've got a 40-line PIC18 crc16 generator routine that I'd like to have converted to BASIC..... -- ******************************************* VISIT MY HOME PAGE: <


OrCAD capture libraries for PICs

Started by Nick Alexeev in Piclist14 years ago 3 replies

Colleagues, I've just started using OrCAD (switched from ExpressPCB). I was surprised when I found that neither OrCAD nor Microchip...

Colleagues, I've just started using OrCAD (switched from ExpressPCB). I was surprised when I found that neither OrCAD nor Microchip supplies the libraries for the PIC18 family. Does anyone have libraries for PIC18? Is there a place one the web to look for OrCAD libraries? Thanks! Nick


Warp13 OR Picstart plus

Started by AMIT KAPOOR in Piclist15 years ago 3 replies

Hello everyone , i need your guidance . actually till now i was using pic16 series and i have programmer which support...

Hello everyone , i need your guidance . actually till now i was using pic16 series and i have programmer which support only pic12/14/16 series. but now i want to jump to pic18 series so i need to buy pic18 programmer.i searched and found that there are two programmer :


Re: unable to use PIC18 low isr

Started by Dennis Clark in Piclist12 years ago

> I have been attempting to use the PIC18 low isr but can't seem to get > anything but the high isr to fire. I have reduced my code to...

> I have been attempting to use the PIC18 low isr but can't seem to get > anything but the high isr to fire. I have reduced my code to the > following and it works fine as long as I use the high isr. If I set a > break point on the low one, it never gets accessed. The original code was > designed to use the low isr only and I have been able to make it work by > pointing the high vector t


unable to use PIC18 low isr

Started by embe...@austinlakes.com in Piclist12 years ago

I have been attempting to use the PIC18 low isr but can't seem to get anything but the high isr to fire. I have reduced my code to the following...

I have been attempting to use the PIC18 low isr but can't seem to get anything but the high isr to fire. I have reduced my code to the following and it works fine as long as I use the high isr. If I set a break point on the low one, it never gets accessed. The original code was designed to use the low isr only and I have been able to make it work by pointing the high vector to the low handler. ...


Help for start PIC18 series programming language.

Started by Hasan Arslan in Piclist15 years ago 10 replies

Hi, I'm use the PIC12F and PIC16F series MCU i will be upgrate to PIC18 Seres. I have make sample program with 18F452. But I...

Hi, I'm use the PIC12F and PIC16F series MCU i will be upgrate to PIC18 Seres. I have make sample program with 18F452. But I have a problem whit OSC select. My program don't work if select XT,HS or HS PLL mode. It work only in RC02RA6 mod but i don't understand why the program&


PIC18, SED1335 and Ramtex GUI

Started by Igor Janjatovic in Piclist15 years ago 1 reply

Anyone having experience with connecting PIC18 MCU to graphic LCD based on SED1335 controller using GUI driver library from Ramtex?...

Anyone having experience with connecting PIC18 MCU to graphic LCD based on SED1335 controller using GUI driver library from Ramtex? Does it work as described on http://www.ramtex.dk/glcd/glcd1335.htm ? Or I can just write my own code for


C recommendations?

Started by Eirik Karlsen in Piclist15 years ago 5 replies

In the past I've written my PIC18 programs in assembly, up to 12Kb... and it is a helluva job! The next project is likely to be...

In the past I've written my PIC18 programs in assembly, up to 12Kb... and it is a helluva job! The next project is likely to be significantly larger than this. So I'm pondering about learning C. Have no knowledge of C and has never typed a C command. But I know VB and other BASICs and the C code looks somewhat similar to BASIC so the transitio


i need help

Started by eng_hossam123 in Piclist11 years ago

Dear,=20 members please,=20 i need this book: PIC Microcontroller and Embedded Systems: Using Assembly and C for=20 PIC18=FD by...

Dear,=20 members please,=20 i need this book: PIC Microcontroller and Embedded Systems: Using Assembly and C for=20 PIC18=FD by Muhammad Ali Mazidi, Rolin D. McKinlay, Danny Causey any one can get this book, send me this book because i need it very much thanks, hossam ------------------------------------ to unsubscribe, go to http://www.yahoogroups.com and follow the inst...


Interfacing LAN Cards with PICs

Started by Karlo Campos in Piclist13 years ago 3 replies

Anybody here have info on interfacing PCI LAN Cards with PIC18's?

Anybody here have info on interfacing PCI LAN Cards with PIC18's?


about the usart in PIC18

Started by Karlo Campos in Piclist16 years ago 1 reply

Hi! Is it possible to use the receive module of the USART in interrupt mode and the transmit module in non-interrupt...

Hi! Is it possible to use the receive module of the USART in interrupt mode and the transmit module in non-interrupt (polling)? Based on the data sheets, (theoretically) is yes. How come when I tried it with my pic it doesn't? Any explanation guys? or work arou


"Production" ICSP Programmer

Started by Dave Moore in Piclist15 years ago 8 replies

Hate to do it, but I'm looking for opinions on "production" programmers for PIC18 flash devices. I've looked through the archives...

Hate to do it, but I'm looking for opinions on "production" programmers for PIC18 flash devices. I've looked through the archives and web pages, found a few things, but not enough for me to say "that's the one." I'm looking for something that the young technician can us


Re: mul 24by16

Started by Eirik Karlsen in Piclist16 years ago 3 replies

Hi, anyone have a good PIC17/PIC18 (mulwf) signed or unsigned 24by16 multiply routine? I've tried some of those in AN617 but they...

Hi, anyone have a good PIC17/PIC18 (mulwf) signed or unsigned 24by16 multiply routine? I've tried some of those in AN617 but they are flawed. -- ******************************************* VISIT MY HOME PAGE: < http://


PIC18 CCP

Started by Eirik Karlsen in Piclist15 years ago 2 replies

Hi, I think I have the answer to this question but I ask just to be sure. PIC18F4520: I need to: Output two 8bit PWM 's (50Hz -...

Hi, I think I have the answer to this question but I ask just to be sure. PIC18F4520: I need to: Output two 8bit PWM 's (50Hz - 100's Khz usable) Measure one PWM input (500uS - 100mS) Measure two FRQ inputs (5Hz - 5Khz) All of these must be done repeatedly at a minimum of 20Hz.


PIC18 RB pullups ?

Started by Eirik Karlsen in Piclist14 years ago 1 reply

PIC18242 has internal pullups on RB but from the datasheet it seems that they only pertain to inputs. How about when RB is an all outputs ? Do...

PIC18242 has internal pullups on RB but from the datasheet it seems that they only pertain to inputs. How about when RB is an all outputs ? Do I have to use external pullups for driving 1mA loads or are the RB outputs real totem pole ? The datasheet is not clear on this. -- ******************************************* VISIT MY HOME PAGE: LAST


W and WREG

Started by Eirik Karlsen in Piclist16 years ago 4 replies

Hi, PIC18 and MPASM: what is the thing about W and WREG ? Are those labels not 100% compatible? The following lines: SUBWF...

Hi, PIC18 and MPASM: what is the thing about W and WREG ? Are those labels not 100% compatible? The following lines: SUBWF MCI,WREG SUBWF LIMSTAT,WREG ANDWF LIMPSTORE,WREG all generate the compiler warning "Argument out of range. Least significant bits u


TBLPTR bug in MPLAB

Started by Eirik Karlsen in Piclist16 years ago 1 reply

Seems like MICROCHIP can't make up their mind on whether the PIC18 TBLPTR is 21 or 22 bits wide... some places in the datasheet it...

Seems like MICROCHIP can't make up their mind on whether the PIC18 TBLPTR is 21 or 22 bits wide... some places in the datasheet it says it is 21bits, other places it says 22bits. I'm having trouble simulating this stuff. The datasheet


Erasing Config Bits

Started by Eirik Karlsen in Piclist16 years ago

Is it correct that if the processor (PIC18) is to self program the config bits it must first erase them (to FF), and then program...

Is it correct that if the processor (PIC18) is to self program the config bits it must first erase them (to FF), and then program the required bits to '0' ? This is the way it works for the Low ID bytes at 0x200000. And does the processor read the config bits only at start-up