![]() |
Serial_Write_Char() - Question
Hi,
When using the "Serial_Write_Char()" function I know the correct syntax is "int port,int ch_out." However when I use "Serial_Write_Char(TTL_PORT,52);" the "Program State" LED stays orange. What am I doing wrong? Thanks, Nathan |
Re: Serial_Write_Char() - Question
Running IFI default code? Called Serial_Driver_Initialize() before hand? Did anyone modify the IFI default low interrupt handler and remove CheckUartInts() call?
A random guess is the interrupt flag is being set but never cleared. |
Re: Serial_Write_Char() - Question
This is the end part of "User_Initialization" in user_routines.c
Code:
relay7_fwd = 1;Thanks, Nathan |
Re: Serial_Write_Char() - Question
I'm not sure I see the problem of moving it down. But if you can't, you can't (not sure why as IFI initialization has already done two Putdata() calls to init both low level buffers). Try the following..
Code:
|
Re: Serial_Write_Char() - Question
I don't see why you shouldn't be able to move the Initialize_Falcon down, but you can definitely move the serial initialize up. In any case, you have to call the initializer before you can use the serial ports.
|
Re: Serial_Write_Char() - Question
Ok, so I actually ended up moving my initialization function to process_Data_From_Master_uP() and just making sure it only gets called once.
It works now :-) Thanks, nathan |
| All times are GMT -5. The time now is 23:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi