32
of 76
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon
PIC10F200 - Software UART
TEP , The Engineering Projects , Calender Question: 06-Mar-2017
TEP , The Engineering Projects , Category In: PIC Microcontroller Projects
I would like to write a software transmitter UART for the PIC10F200, the only problem is: It doesn't have a timer overflow interrupt. I don't know how i could manage that every pin toggle takes exactly the same time. My current approach looks like this: [code]#include <p10f200.inc> __CONFIG _WDTE_OFF & _CP_OFF & _MCLRE_ON tmp1 EQU 10h tmp2 EQU 11h org 0x00 movlw 0FFh movwf GPIO movlw 00h tris 6 main movlw 0A5h movwf tmp1 movlw 08h movwf tmp2 bcf GPIO,1 ;Start bit call TransmitByte bsf GPIO,1 ;Stop bit goto main TransmitByte: sr rlf tmp1,f ;shift tmp1 to the left (affects carry bit) btfss STATUS,C ;check carry bcf GPIO,1 ;turn pin to '0' if carry = '0' btfsc STATUS,C bsf GPIO,1 ;turn pin to '1' if carry = '1' decfsz tmp2 ;decrement loop variable goto sr retlw 0 END[/code] This code above looks like this:

https://picload.org/image...pdr/uart_pic10f200.png
TEP , The Engineering Projects , Icon Answer: 1 TEP , The Engineering Projects , Icon Views: 150 TEP , The Engineering Projects , Icon Followers: 85
Small Bio
TEP , The Engineering Projects , Image

syedzainnasir

TEP , The Engineering Projects , Rating 7.5 7.5 / 10
TEP , The Engineering Projects , Icon Level: Moderator
TEP , The Engineering Projects , Icon Joined: 20 Mar 2022
TEP , The Engineering Projects , Icon Last Active: 2:21 PM
TEP , The Engineering Projects , Icon Location: TEP , The Engineering Projects , Flag
TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon TEP , The ENgineering Projects , Icon

RE:

PIC10F200 - Software UART
TEP , The Engineering Projects , Calender Comment: 07-Mar-2017
TEP , The Engineering Projects , Category In: PIC Microcontroller Projects
Bro give some more details about the project and as the software UART is concerned, that's quite easy in PIC Microcontroller, you just specify the pins on which you wanna o the software serial and rest is done by the compiler. I would suggest you to use MikroC Pro For PIC. They have given Examples in their knowledge base.
TEP , The Engineering Projects , Tick Correct Answer
Comment Bio
TEP , The Engineering Projects , Tags
PLC
Robot
STM32
Arduino
AI
ESP32
Ladder Logic
PLC Projects
Programming
Communicates STM32
PLC Projects
Communicates PLC
Font Style
Alignment
Indenting and Lists
Insert Media
Insert Items

Want to leave an answer!

Word Count :0 Draft Saved at 12:42 am.