Mar 02, 2012
11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 02, 2012
11:51 AM
Oddities in the work -
Here is my code:
#include "fx2.h"
#include "fx2regs.h"
void configure_chip(void)
{
OEB = 255;
PB1 = 0;
}
void main (void)
{
configure_chip();
PB0 = 1;
}
This code does not give a positive potential on the PB0 - why?
If you do this:
void main (void)
{
configure_chip();
PB0 = 1;
PB0 = 1;
PB0 = 1;
}
then everything is fine .... : (
2 Replies
Anonymous
Not applicable
Mar 06, 2012
07:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 06, 2012
07:15 AM
Have you tried this with different FX2LP samples i.e. just to isolate whether this is due to a chip level failure.
Please attach your project files here. I want to check if the compiler is optimizing out something.
Regards,
Anand
Attachments are accessible only for community members.
Mar 11, 2012
11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2012
11:46 AM