Serial Motor driver - to UART or not to UART

Started by holopoint.rm in Piclist17 years ago 5 replies

I'm using a PIC16F628 to build a serial DC motor driver. I thought of using the UART port to wake the PIC when a new command...

I'm using a PIC16F628 to build a serial DC motor driver. I thought of using the UART port to wake the PIC when a new command comes in. What are the considerations for using the UART ? Should I use a interrupt or just check the port in a tight loop ? If I want to preserve powe


Power

Started by noam naaman in Piclist9 years ago

Hi The correct thing to do is solve the communication problem in the PIC. I suggest you add code for checking the OERR and FERR UART flags and...

Hi The correct thing to do is solve the communication problem in the PIC. I suggest you add code for checking the OERR and FERR UART flags and reset the UART per Microchip's instructions if one of them is set. This is the main reason for communication failure in PIC systems. Best regards Noam


PIC 877 and Rf wireless

Started by ramtec73 in Piclist16 years ago 5 replies

Has anyone tried transferring datas to or from 877 wireless. I have wireless rx and tx from www.laipacinc.com. Do we the UART...

Has anyone tried transferring datas to or from 877 wireless. I have wireless rx and tx from www.laipacinc.com. Do we the UART for this? Any examples out there about using UART.


pic16f877a uart problem

Started by siva...@gmail.com in Piclist11 years ago 6 replies

Hai to all, Iam trying to communicate from pic 16f877a to the pc's hyperterminal at 9600 baud rate. Iam posting my code for this. Iam able...

Hai to all, Iam trying to communicate from pic 16f877a to the pc's hyperterminal at 9600 baud rate. Iam posting my code for this. Iam able to simulate with mplab but I could not implement with hardware. I checked for max232, rs232. They seem to be working perfect. But iam not getting the data through hyperterminal comm port. My crystal oscillator is 8mhz. /* uart serial communication a...


Waking Up UART from Sleep

Started by northwoodsfisherman in Piclist16 years ago 7 replies

Hi Am experimenting with a PIC16F628 here and would like put the processor in Sleep Mode and then wake it up when a character is ...

Hi Am experimenting with a PIC16F628 here and would like put the processor in Sleep Mode and then wake it up when a character is received in the UART. Problem is that SLEEP seems to shut down the OSC and thus the Baudrate Generator is not running to get the character. Read


Having to turn off UART continuous receive

Started by upand_at_them in Piclist15 years ago 5 replies

I have a program in my 16F88 that reads data from a GPS (through the hardware UART), stores it in RAM, parses it, and then writes...

I have a program in my 16F88 that reads data from a GPS (through the hardware UART), stores it in RAM, parses it, and then writes certain items to an external EEPROM. What I've discovered, though, is that I have to turn off continuous receive (CREN=0) before I do my processing ro


How to declare a software UART in the MPLAB compiler?

Started by Nick Alexeev in Piclist15 years ago 1 reply

Colleagues, I'm a big fan of CCS compiler, but for this project I have to use the MPLAB, becasue it support s Salvo OS....

Colleagues, I'm a big fan of CCS compiler, but for this project I have to use the MPLAB, becasue it support s Salvo OS. Here are my questions. - Is it possible to delare a Software UART in the MPLAB without a lot of coding? - Is there a good 3rd partty Software


UART

Started by wonghongyik in Piclist11 years ago

Hello everybody, I was trying to write a UART program to send out few bytes of data by using PIC16F877A, CCS C compiler, MPLAB IDE, MPLAB SIM....

Hello everybody, I was trying to write a UART program to send out few bytes of data by using PIC16F877A, CCS C compiler, MPLAB IDE, MPLAB SIM. The problem of my program is the code fail to transmit out the data to pin RC6 of Port C. So far i am just use MPLAB SIM to simulate my program and using Watch window to monitor all the register and symbol. To simulate the program i was pressing the...


Soft UART on 12F629 - help wanted

Started by lpcarmed in Piclist14 years ago 2 replies

Hello, I posted a project on Elance to get a small soft UART project done: ...

Hello, I posted a project on Elance to get a small soft UART project done: http://www.elance.com/c/search/main/lSearch.pl?mode=search&stage=results&domain=project s&cati


Changing UART baud rate

Started by Mada Jimmy in Piclist14 years ago

Hi,   With PICBASIC, how to change UART baud rate while program running? So I ca

Hi,   With PICBASIC, how to change UART baud rate while program running? So I ca


3V causes problem

Started by upand_at_them in Piclist15 years ago 3 replies

I have a 16F628 running at 5V, but when I switch it to 3V it doesn't work. It uses the UART and the MAX232 is supplied 5V. When...

I have a 16F628 running at 5V, but when I switch it to 3V it doesn't work. It uses the UART and the MAX232 is supplied 5V. When I change the PIC back to 5V it won't work again and I have to reprogram the chip. I have LVP disabled. I have, however, verified that I can


UART Code example, and 8 x 8 switch example

Started by Alan Marconett in Piclist14 years ago 4 replies

Hi to the list, I'm forwarding a message that I received. I had some ideas, but I wonder if we could get a reply from one of the many...

Hi to the list, I'm forwarding a message that I received. I had some ideas, but I wonder if we could get a reply from one of the many knowledgeable members of this list. It's an interesting application. As many might have surmised, we are both Amateur Radio Operators. Kinda like a big brotherhood! Thanks, Alan KM6VV


Software serial I/O

Started by upand_at_them in Piclist15 years ago 28 replies

I need to implement two UARTS on a PIC. I can use the hardware UART, but I'll still have to use software big banging to implement...

I need to implement two UARTS on a PIC. I can use the hardware UART, but I'll still have to use software big banging to implement the other. The code I've seen looks straightforward, but I have a question. The receive routine, obviously, starts with the detection of the sta


pic24 communicating with WI232 DTS transciever

Started by fadi83 in Piclist11 years ago 2 replies

hello all, before i start i have to stay that i'm still a beginner in working with pics, so take it easy on me :). i'm currently working...

hello all, before i start i have to stay that i'm still a beginner in working with pics, so take it easy on me :). i'm currently working with explorer 16 Dev. board using pic24FJ128GA010. i'm trying to communicate with a transciever that i just acquired which is Wi232DTS from radiotronix. i've configured the uart in the pic, and i tested it by using a hyperterminal. according to my...


Where to learn?

Started by Randy McKenzie in Piclist12 years ago 2 replies

Where can I find information on programming a PIC using the UART and decode address and other data?? ( and NOT 9th bit stuff ). Ive read the...

Where can I find information on programming a PIC using the UART and decode address and other data?? ( and NOT 9th bit stuff ). Ive read the Microchip sheets but not clear on what Im doing yet. I want to use a PC and a 485 network to poll several pics, each with its own address. Use is controlling signals on a model railroad. Any help is appreciated! Trying to learn with a middle ag...


PIC -ISA interfacing weird problem

Started by kalyanramu vemishetty in Piclist15 years ago 1 reply

Hi all, I am interfacing pic microcontroller (pic18f452) to FDC37c672 from SMSC. FDC37c672 has some UART and IrDA capabilities...

Hi all, I am interfacing pic microcontroller (pic18f452) to FDC37c672 from SMSC. FDC37c672 has some UART and IrDA capabilities which I want to explot. It has an ISA bus interface. I am able to read the registers from the FDC37C672. But for some reason I am unable t


FAT file system

Started by Gus in Piclist15 years ago 1 reply

After a long time of work I am finally done with ALFAT. I used ARM chip and programmed it with full FAT file system where you can...

After a long time of work I am finally done with ALFAT. I used ARM chip and programmed it with full FAT file system where you can send SPI or UART(serial) commands to it and it will save FAT files to many kinds of medias SD, MMC, CF and hard disks! I would be more than happ


20Mhz 16F873A UART bootloader

Started by Tim in Piclist16 years ago 1 reply

Hello - I am looking for a 16F873A bootloader that uses the built-in serial port (and ideally without WDT). Shane Tolmie's looks ...

Hello - I am looking for a 16F873A bootloader that uses the built-in serial port (and ideally without WDT). Shane Tolmie's looks most promising to me but his site doesn't have a 20Mhz version. Apparently the 87xA versions use a slightly different algorithm for self-programming so I a


Interrupts and GIE

Started by upand_at_them in Piclist14 years ago 7 replies

Is it necessary, or even a good idea, to disable GIE when no interrupts are enabled? I have a UART library that I wrote and one of the...

Is it necessary, or even a good idea, to disable GIE when no interrupts are enabled? I have a UART library that I wrote and one of the functions enables receive interrupts, and turns on GIE. But my function to disable receive interrupts doesn't turn off GIE, because it could be needed for other interrupts. Should I check to see if other in


Re: 12F675 Startup Problems

Started by dlc in Piclist12 years ago 1 reply

And that start bit depends upon the the stop bit of the previous byte. The longer the string transmitted, the more time drift has to have...

And that start bit depends upon the the stop bit of the previous byte. The longer the string transmitted, the more time drift has to have an effect. I admit that my experiences have to do with _reading_ async serial using the RC oscillator where my bit-banged serial reader is likely more affected by drift than a hardware UART reading any serial that I'm transmitting. DLC smxcu...