- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am modifying the DelSig_16Channel example to get it working on a CY8KIT-059, using the serial port as a substitute for the LCD for data output. Has anyone got this example to work on the PSoC5 either as is or modified? At the moment I only need 4 channels and I am working in a single-ended mode on the ADC.
I notice that the EOC pin sometimes shows no activity even though I get a decent pulse on the SOCPin, and even when it does show up, the numbers coming off the ADC make no sense.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
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
Signed arithmetic (aligned to 16 bits)
65535 = -1 = good value for ground , only one bit off
10977 = 0x2AE1, a bit more than 1FFFF maximum for 14 bit signed, the delta sigma is known to overshoot the specified range, check the datasheet. This could be good or not depending on the analog reference value used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Magnus. That explains the numbers I am getting. I have it on Vssa to 7.5V range and 65565 * 5.0/7.5 is 10922.
The triggering is a separate and intermittent issue which we have not got to the bottom of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have a 4 input Mux but only a 2 input count signal. The original example the trigger example matched the mux inputs. This may be causing your issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No - that's not it. With 2 lines, you can set 0x00, 0x01,0x02, 0x03. A 16 channel MUX only needs 4 Count lines. The LUT sets these lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Increase your stack size it is set to 0x80 by default but this is too small for some applications increase it to 0x200 and see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay I made the example and it seems to read channel one but doesn't toggle to the other inputs. Your project is missing the selection switch and that may be the issue. I haven't added the switch yet so for now I am stuck on channel 0. I just tried the switch input. It will not sequence without a user input in the example program. Did you put a sequencer in your program?