- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello I am still trying to filter a signal. I had another problem but them solved. Firstly I am using ADC delsig after I am sending them to Digital Filter Block via DMA. My question is about ADC delsig output is signed integer. When I send them to filter to DMA, my signal get 2's complement form because DMA block allow to send 32bit unsigned integer . To solve them I add 1V DC offset from signal generator to test the code . My question is that can I solve it to another method because there would be problem to measure the my real signal. Anyone has an experience about that.
Thanks
Burak
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not quite clear at which point of the signal chain your question aims.
signal at pin:GND to VDDA
ADC in: depends on selected reference
ADC out to Filter: signed integer
Filter out: signed int32
Filter to... ??? sram?: still signed int32
The DMA channel will not look at a sign and will transfer 32bit entities.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My problem is due to DMA channels which send data from ADC delsig to Filter block. It's passing trought signed bit(adcdelsig) to unsigned bit(dma). A signal which is positive sign is not problem but converting negative sign become problem for me. I want to solve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DMA is transferring data and there is no conversion between signed and unsigned.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes you are right, I was looking the DAC output. Thats my wrong. Now everthing is clear for me. Thank you and sorry for blank topic.
Burak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The DAC is only 8 bits wide and is unsigned (uint8) to convert a signed int8 into a uint8 just add 128.
Bob