fix what, your glitching problem? You haven’t actually given us enough information to help you, but if it’s just glitching that’s the problem, you need to not rely purely on hardware
@hwalker_MIWV, yea that’s too vauge. Post code or schematic diagram of how you connected the button.
I think I figured it out - I needed to have my buttons set as interrupts not inputs. Some of the online examples from GHI use inputport so I got mixed up. Trying to get this display going, I am so screwed on the deadline for this project - need to get the GPIB and USB ports working too.
Can someone please post a good threading example in NETMF? It’s been a long time since I have done any threading and I would like to see how people control a display and motor or other device simultaneously. I have them working separately but when combined it goes haywire.
…Yes I did try searching for articles but everything is outdated or just unclear.
I need to initiate the display and move my motor to various positions. With each movement the display must show the position. I am not sure if the display and motor logic should be in two separate threads from Main, one separate thread, or one part in Main the other in a thread. The positions are stored in static arrays created at the start. Don’t have much code to post yet as I am still trying to read up.
I think I am having issues with the Go_To_Dir() command not actually threading. I use Go_Until, then call ResetPos() before commanding to predertermined positions with Go_To_Dir() but it just keeps going right past where I need to go (I tell it to just move a couple degrees from where ResetPos() is called. Maybe the absolute position is not resetting with RestPo()? I can’t properly read my register values in order to check.
Also, how can I store data on the G30 when it is off? I need to keep an array stored in the memory and call it when it turns on.
I actually have no idea.
Flash configuration?
Can you please elaborate how flash configuration works? I know from studying the old version of our code which uses a PIC that there are two separate memory registers, one which can store data when powered off. I assume it is how the code is deployed to the G30’s as well I need to be able to store an array in that register.
To find out about configuration functionality, the first thing I would do is look in the GHI MF class documentation for a class with a name that suggests it might have configuration capabilities.
I assume this is where you are leading me.
Can anyone elaborate on the “Configuration Sector” of GHI chips?
Also, how do I handle decimals in NETMF? Should I store them as floats?
Gus can you please shed some light on how the Configuration Sector of your chips works?
Not sure how to tag you so I sent you a topic invite.
We do not recommend the use of it since it is almost always misused.
What are you trying to accomplish?
I need to store an array in the G30’s memory that can be accessed after powering on and off the chip, i.e. permanent storage.
Config if not permanent. It is used to store user settings, that are okay to lose. Historically, it was a good idea when Microsoft first made it many years ago. I advice against using it.
A $0.5 eprom is much better… Or wait for TinyCLR to add storage support.
Any recommendations on what eprom would be easiest to interface with the G30?
An sd card.
Also does anyone have recommendations on a FT245R driver? Probably using this to implement Test & Measurement USB
Or should I stay away from that chip? I am already going to need emulate that chip for something else.