Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 9th March 2007, 01:07 AM   (permalink)
Default

Hey Guys

I have partial good news, after writing a function to check the availability of the TX register in the UART suggested by Papabravo, and waiting until the TX was empty, i am now able to successfully send my string without any issues.

\o/

The other issue I am now facing is getting the MAX3100 UART to interrupt on the IRQ line. I just can't seem to get it to produce a signal.

My UART setup is:

Code:
void spi_init()
{
	STAT_CKE = 1;
	spi_write(0b11000100, 0b00001011);
	while(spi_ready(0b01000000, 0b00000000));
}
I am setting the RM bit (data available in the receive register) but I am not getting a signal generated when data becomes available.

I'm not sure if I am setting up the chip correctly. The datasheet talks about putting the chip into software shutdown mode (SHDN) and applying the settings. Anyone have an ideas about this?

Thanks
Regards
Rich
richb is offline  
Old 14th March 2007, 08:22 PM   (permalink)
Default

You want to bring the chip out of shutdown and you need to configure the IRQ line for the interrupts that it should respond to. Software shutdown is a low power mode that conserves power but may cause you to miss traffic.

It would appear that a Read Data Operation clears the IRQ.

Last edited by Papabravo; 14th March 2007 at 08:31 PM.
Papabravo is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
code not working jijita Micro Controllers 10 3rd July 2004 06:52 PM
eeprom problem jijita Micro Controllers 1 22nd June 2004 05:58 PM
ya mari_69 Micro Controllers 4 7th June 2004 02:29 PM



All times are GMT. The time now is 08:14 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker