How do i get rid of the the framing error
Hello,
I am a student working on a Pulse Oximeter and i am supposed to send sample values to Labview via the RS232 serial configuration. I am able to view the data in VISA but i am unable get the graph running constantly. There is always a framing error(-1073807253) whenever i run the VI and the graph only appears for a few seconds before the whole VI halts to display the error. How do i get rid of the error. I am only sending 8 bits of data. I have even tried using even the most simplest program whereby i send only characters A & C and even then i am getting the framing error. Please help me, i am in need of urgent and desperate help. I am sending these cahracters from the PIC16F877 using assembly language and i have attached the code to this forum thread. I have even tried making use of 9 bit transmission and parity bits and nothing seems to work for me. Please provide me with some help and suggestions. Have a look at my program and VI and sugggest some solutions as soon as possible. Your help will be greatly appreciated.
Thank You
Best regards,
Samarth Pawar
Temasek Polytechnic
Singapore
Below is my program to send the data:
#include
TXSTA_INIT EQU 0x24
TRISC_INIT EQU 0x80
RCSTA_INIT EQU 0x90
#define Freq .4000000
#define Baud(X) (Freq/(.16*X))- .1
call SetupSerial
Loop:
movlw 'A'
movwf TXREG
call Usart_Send
movlw 'C'
movwf TXREG
call Usart_Send
bcf TXSTA,TXEN
goto Loop
;;;;;;;;;;;;1MS DELAY;;;;;;;;;;;
DLY1MS MOVLW D'40'
MOVWF H'31'
LOOP2 CALL DLY
DECFSZ H'31'
GOTO LOOP2
RETURN
DLY MOVLW D'1'
MOVWF H'30'
NOP
LOOP1 DECFSZ H'30'
GOTO LOOP1
NOP
RETURN
SetupSerial:
Banksel TRISC
movlw TRISC_INIT
movwf TRISC
movlw Baud(.9600)
movwf SPBRG
movlw TXSTA_INIT
movwf TXSTA
Banksel RCSTA
movlw RCSTA_INIT
movwf RCSTA
Return
Usart_Send:
banksel TXSTA
SS_Wait btfss TXSTA,TRMT
goto SS_Wait
bcf STATUS,RP0
CALL DLY1MS
Return
END ; directive 'end of program'
Attachments:
New_ash.vi 180 KB
Four things to check when having problems with serial com:
1. Make sure the baud rate matches the device.
2. Make sure the parity bit matches the device.
3. Make sure the number of stop bits matches the device.
4. Look for buffer overruns if you do not use flow control.
Like CC said, using Hyperterminal will verify that you are getting good responses from your device. If it runs fine for a while, then you start getting errors, the most likely cause is buffer overruns. You will have to use flow control to prevent this from happening. You will have to know what type of flow control your device supports, hardware flow control (RTS-CTS), or software flow control (XON-XOFF).
CC: Look again, he did post his vi.
- tbob
Inventor of the WORM Global
Similar Messages
-
How do I get rid of the following error message?
Firefox could not install the search plugin from "file:///C:/Documents%20and%20Settings/Owner/Application%20Data/Mozilla/Firefox/Profiles/3fjzcxfk.default/FCTB/%7B51ef49d2-624b-4194-8b97-1c468e9b0efe%7D/60497/547b6f0419da8aa93c7ae24e435eed4c" because an engine with the same name already exists.
What search engine are you trying to install?
You either already have it as one on the default search engines or installed it yourself.
You can find user installed search engines in the searchplugins folder in the Firefox profile folder.
You can use this button to go to the currently used Firefox profile folder:
*Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
*http://kb.mozillazine.org/Profile_folder_-_Firefox -
I want to switch to the u.s store as I now live in the us, I cannot switch stores because my balance is $1.41 in the oz store and needs to be zero, how can I get rid of the $1.41 when everything costs more or less than that? I do not have a credit card on the oz iTunes account an I cannot use my us one to top it up.
HELPClick here and request assistance.
(60992) -
Since downloading ios5 on my iphone 4 a few days ago, the capacity guage in itunes shows "other" as over 21Gb and i can no longer fit any music on my iphone.
How do I get rid of the other stuff?
capacity available on 32 Gb iphone is 28.49Gb
i previously had 21.97 Gb music, over 6 Gb photos, about 1Gb of apps, and minute amount of audio
now i have no music, 5.4 Gb photos and similar (0.8Gb) for apps and audio. i have deleted heaps of photos and unused apps to try to make space but obviosly this is a much bigger problem. I also created a smaller music folder on itunes to sync to but at present no music is selected for syncing due to the lack of available space.
i have 15Gb icloud account now also which is about half full.
Ive done a little research and heard similar tales but with much smaller other totals than this. Can you help?
i cant update my apps as i get a message saying i do not have enough available space.I had the same problem today and was able to resolve it without having to do a restore or reset. The problem had something to do with my mail accounts. The upgrade reset my mail settings, switching both my gmail and my .mac mail to "archive all mail". I went into the General Settings, disabled that setting, and resynced the phone. The "other" storage allottment dropped back down to less than a gig.
Before you restore or reset, I would try that first. -
Some of my songs are listed twice on my iPod itself. However, when I plug the iPod into my computer, the songs don't show up twice in iTunes when I click on device/music. How do I get rid of the duplicate songs on my iPod?
that is odd! that should not be happening.
Are you syncing your songs right off of itunes itself? because it should be syncing over to the ipod however it is listed in itunes. -
How can I get rid of the dates and time on my Notes
How do I get rid of the dates and times on my Notes that appeared when I updated to 8?
Yes, it's seems like a poor design decision.
By putting the date on the line below the Note title in the Notes Index, the app shows half the number of notes per page AND if you have a large number of notes, it takes twice as long to stroll down.
I doubt the designer actually uses the app.
TSAW -
I am already a Firefox user, how do I get rid of the new Firefox setup on my computer?
I am already a Firefox user, how do I get rid of the new Firefox 4 setup on my computer now?
http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6/
-
I have an update for an app which I cannot update as it requires ios6 which I cannot get on my iPad - how do I get rid of the little red number? It is really annoying
Does this apply?
If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support -
How do I get rid of the 3d effect when opening home screen? It gives me a headache.
How do I get rid of the 3d effect when opening home screen? It gives me a headache.
jimginakouri wrote:
It's more of a "zoom-in/zoom-out" every time you turn on home screen or open/close an app.
THAT you can't change. Silly of Apple not to provide a setting to back out the animation effects either as a whole or individually. -
How do I get rid of the auto signature "sent from my iPhone" when I create a new message?
how do I get rid of the auto signature "sent from my iPhone" when I create a new message?
Settings -> Mail -> Signature and edit it to whatever you'd like.
-
How do I get rid of the annoying "exportPDF" bar on the right side of the screen that blocks much of the document?
Hi soreankles,
To hide the toolbar in Reader, choose View > Show/Hide > Toolbar Items > Hide Toolbars.
Best,
Sara -
How do I get rid of the favorites bar listing on the left of my screen
How do I get rid of the favorites bar listing on the left of my screen when I can find it at the top of the screen? I takes up too much of my useable acreen
Hi Dale,
I don't use Safari much, but try this as I recall...
Click the Book icon in the Favorites/Bookmarks bar. -
How do i get rid of the icloud backup message on my ipad?
How do I get rid of the icloud message on my ipad?
Try a reset:
1. Hold the Sleep and Home button down (together)
2. For about 10 seconds
3. Until you see the Apple logo (very important) -
How do i get rid of the last import album on my iPhone?
How do i get rid of the last import album on my iPhone its taking up almost half my storage of my whole phone?!!
This is the iPhoto for Mac forum - you need the iPhone forum for iPhone questions - I will request tha tit be moved
LN -
How do I get rid of the yellow star notification on my blackberry?
How do I get rid of the yellow star notification on my blackberry?
Can you be more specific? Where is this located? Can you click on the ribbon where the star is?
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you! -
How can I get rid of the dark area on top one third of my iphone screen which spoils my background image?
It seems this problem is caused by the software to increase the readibility of upper letters (clock battery etc.) It be nice to leave us the control of choosing background letter color too if we are using brighter images or darker images.
I'm using iphone 4s and it appeared after I updated to new patch. 7.1.1.
Thanks,
Cem
I do not know how to move topics from sections of forum so I apologise for duplicate post.
https://discussions.apple.com/message/25594879#25594879Photo added.
Maybe you are looking for
-
Why does firefox download as a device to be saved to?
When I download Firefox 26 it acts as a device to be saved to on the Macbook Air. Also every time I open Firefox a window opens but and warns of something but I cannot recall that uness I close everything down again, and I would have to redo this em
-
Published fla file appears small on website
Hi, I published a flash movie clip into html (using flash pro 8) and uploaded it to the internet. When I opened the URL in IE version 8 the flash movie clip displayed exactly the way it looked in flash (Centre of the screen and 700Width x 400 Height)
-
Why does the battery need to be recharged so often?
My iPod is brand new and need recharging every other day. Why and how does this happen?
-
Jakarta POI and Java Excel API
I recently downloaded both these as I'm trying to create an application that reads information from an excel file. However, the problem I am having is that I just don't know where to start. When I download the files and unzip them, I haven't a clue w
-
Little help for a novice - Need a ps script to list user with their email only.
Hi, I need to extract every month the user list which have their email information on it, so i don't need to extract the user services etc from the AD. Today, i'm using this script i made : clear-host Import-Module activedirectory $CurrentDate = Get-