Post your project for forum to look at.
“Create Workspace Bundle”
Use Firefox or IE, not chrome, to post.
this is the project
I think it is more convenient to use an external signal to the ADC start (no more than 8-10kHz for baudrate 11520).
Seems UART performs sending bytes of Tx buffer automatically, so the main loop of the program do not do anything.
Modified project is attached at the bottom.
Perhaps you are interested in my version of the oscilloscope PSoC_OSC_12bit.zip is here
or cardiograph ECG.ZIP ECG_PGA.zip can find it here.
dactrial.cywrk.Archive011.zip 665.7 K
Thank you for looking into my code and uploading it again. I tried to run the code you had written and tried to see the waveform on the oscilloscope library you had provided on your link. But I am not getting any output on my screen. Also I am using a "Silicon Lab CP210x usb to uart bridge" i hope that doesnt make much significant changes?
and for the project that you had done yourself, can you give me a small walkthrough to the pin configuration and how the calibrating signal and triggering is worked on?
I could not understand what the project does not work for.
I hope that dactrial.cywrk.Archive011.zip you have your own program (MAKERPLOT software)
I hope you have agreed TTL signal levels and your PC.
I do so like on this picture. RS_XX_modules.png
calibrating signal-creates meander 1Volt 100Hz to calibrate my devices.
triggering - is any signal. I usually use it as a timing signal:
Comp_1 comparator converts it into a digital (D0 channel oscilloscope)
Yes, i have seen to it that the TTL signal levels meet the requirement. And as per you schematic, what are the input signals on
pin 6_7(Trigger Level)
It would be really helpful if you could help me out by telling what are the signals given and why? Thanks!
P.S. i am using a CY8CKIT-003 First Touch Starter Kit
This oscilloscope I created for testing device which has one analog and 2 digital outputs.
I needed 12 btiny ADC, so I used 2 bytes for data transfer.
These 2 bytes are sent to the UART continuously at a frequency of 10 kHz (2 bytes).
Program on the PC can start reception at any time, so it should distinguish between high and low bytes.
I use this for MSB (Bit 7 = 0 - a sign that the low byte is 0-6 bits ADC)
(Bit 7 = 1 - a sign that the high byte is 7-11 bits ADC and 2 free bits)
2 free bits I use as digital channels (P15.0 and P0.0).
Besides channel P0.0 I use to switch on the signal level using a comparator Comp_1.
P6.7 (Trg_Lev) and P5.0 (Lo) - this is the entrance to an external amplifier (typically P5.0 = GND)
P5.1 (Hi) - input synchronization threshold: I accidentally moved the names with P6.7 (Trg_Lev) ((((((
P2.7 (V_REF) - this is the reference signal amplitude 1Volt to test my devices.
P4.4 (CAL) - closes the 2K resistor to ground with a frequency of 100Hz (meander to test my devices)
I created this project for CY8CKIT-003 and try to use the same connection as here.
Please note that the data in the 10 kHz I use baudrate = 230400!
Project modification, if you moved to PSOC 4/5 you could use SAR at 8 bits
and exceed 100 Khz for sample rate. Just a thought.
The majority of DSO's today are 8 bits. They use averaging to extend
effective resolution to 10 bits or higher. That of course is only good for