Serial Motor driver - to UART or not to UART

Started by holopoint.rm in Piclist14 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


16F877 UART problems

Started by stdf23173 in Piclist14 years ago 4 replies

Hello All, I have written/copied some routines from c2c examples and used these to get the uart on the 877 working. (No...

Hello All, I have written/copied some routines from c2c examples and used these to get the uart on the 877 working. (No commercial stuff just DIY). Instead of using the TRMT to determine whether the buffer is empty i use the TXIF flag. The first 20-30 tranmissi


Power

Started by noam naaman in Piclist7 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 Piclist14 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.


Waking Up UART from Sleep

Started by northwoodsfisherman in Piclist14 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


Impossible to send a character through UART

Started by Alain Paschoud in Piclist14 years ago 3 replies

Hi all, I just bought a PIC16C63A. I compiled a program which now runs on it (I toggle a pin of B-port and can see it). I just...

Hi all, I just bought a PIC16C63A. I compiled a program which now runs on it (I toggle a pin of B-port and can see it). I just followed the example to initialize the UART communication and want to send a byte... But unfortunately, no byte is sent. The output voltage on PIN 17


bogus comport on the 18F442

Started by Eirik Karlsen in Piclist14 years ago 1 reply

Q: does the UART really have to transmit ASCII(0) as the first byte after processor reset? I want the processor to transmit a...

Q: does the UART really have to transmit ASCII(0) as the first byte after processor reset? I want the processor to transmit a start-up (boot) message on the UART but I don't want ASCII(0) to be the first character. The datasheet states that the TSR register is set to 00 after


Having to turn off UART continuous receive

Started by upand_at_them in Piclist13 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


pic16f877a uart problem

Started by siva...@gmail.com in Piclist9 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...


How to declare a software UART in the MPLAB compiler?

Started by Nick Alexeev in Piclist13 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 Piclist9 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...


Changing UART baud rate

Started by Mada Jimmy in Piclist12 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


Soft UART on 12F629 - help wanted

Started by lpcarmed in Piclist12 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


UART Code example, and 8 x 8 switch example

Started by Alan Marconett in Piclist12 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


Fast Pic to pic messaging.

Started by holopoint.rm in Piclist14 years ago 31 replies

Hey guys. I need to send one byte between two PICs very quickly and lots of time per second. Whats the best way to do this ? ...

Hey guys. I need to send one byte between two PICs very quickly and lots of time per second. Whats the best way to do this ? Parallel connection of two ports ? Serial and UART ? What do you think ?


3V causes problem

Started by upand_at_them in Piclist13 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


pic24 communicating with WI232 DTS transciever

Started by fadi83 in Piclist9 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...


Software serial I/O

Started by upand_at_them in Piclist13 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


Where to learn?

Started by Randy McKenzie in Piclist9 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...


RS232/i2c on a 877

Started by stdf23173 in Piclist14 years ago

Hello all, I try to receive rs232 data on my 877 and send it again via i2c. What i found out is that they do not work nicely...

Hello all, I try to receive rs232 data on my 877 and send it again via i2c. What i found out is that they do not work nicely together :( I tried to solve it by clearing and setting sspen and spen when using the uart/mssp module. init_uart(); init_i2c