- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is my project,I use POSC do temperature test, I can't go into a serial port interrupt function to help guide me where is the problem? thank you! I hope to be able to give me a about a serial port uart interrupt Thank you very much!!
Solved! Go to Solution.
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are using the receive comand-line feature which uses the rx interrupt. This will conflict with your own interrupt handling.
Keep in mind that every C-language identifier (ie. MyFunc) is preceded by an underscore in assembly language (ie. _MyFunc).
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are using the receive comand-line feature which uses the rx interrupt. This will conflict with your own interrupt handling.
Keep in mind that every C-language identifier (ie. MyFunc) is preceded by an underscore in assembly language (ie. _MyFunc).
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The interrupt flag is reset by the assembly reti (return from interrupt) instruction which is the end of the interrupt handler. To allow for nested interrupts there is a means to access bits directly in the CPU_F register, have a look into the M8C Assembly Language User Guide (from Designer Help menu).
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply.I find clear interrupt flag program.But my question still exists.I can only enter a serial port interrupt.I don't know now is break marks a clear problem, or have any other questions.Please help me,Thank you. this is I interrupt program.My address in the serial port uart interrupt 2Ch.
#pragma interrupt_handler RX_interrupt
void RX_interrupt (void)
{
count=1;
LED_Switch(1); // Turn on LED
M8C_ClearIntFlag(INT_CLR1, INT_MSK1_DCB03);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please post a complete workspace bundle. You need to read the received byte which will afaik clear the interrupt.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your help, I use CY8C29466 is doing pressure test, use its AD collection function to do pressure testing, POSC 1 enough for use.I now use PT1000 do another project, temperature measurement, also want to use POSC controller, can you recommend me a POSC controller?It is best to send a corresponding project for me.Thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The most versatile is the CY8CKIT-059 which you might get from one of your local distributors. When it comes to larger amounts you may want to switch to a PSoC4 using this prototyping kit.
Bob