![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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'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 | |
| |
| | (permalink) |
| 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. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |