- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
generate this code for a tcs3200 but I do not throw any results on the display, I only get characters without meaning
attached to a program that you perform
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Diego Luna-san,
Please refer to my response at the thread below.
Color Light-To-Frequency Converter TCS3200 (CY8CKIT-050) Sample Program
Best Regards,
23-Jan-2019
Motoo Tanaka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have cleaned the code you provided and made some modifications. You only need to write the function get_freq() and then it will build succesfully and most likely will also work with the sensor. I do not have the sensor and can't test it.
Let me know how it goes.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello I write the function get freq but the program is still unable to compile, at first I was given warning by the LCD, but I already solve that part, but the function is still generating error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the project you provided, there is no function definition for get_freq(), only the function prototype is present. Can you tell me what errors you are seeing?
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello I use this code since the previous one did not give me solution, without positive results, but I have the problem that does not show me a result in the Term Tera, it throws me some symbols, probe changing the frequency of work guiding me from a pdf, but without any result, I attach the program and the reading that throws me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Diego Luna-san,
Please refer to my response at the thread below.
Color Light-To-Frequency Converter TCS3200 (CY8CKIT-050) Sample Program
Best Regards,
23-Jan-2019
Motoo Tanaka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Diego Luna-san,
I touched up the code Dheeraj-san touched up.
There were "some" points to be modified
(1) freq should be 16bit instead of 8bit
(2) You needed to add LED output to control the LED on the sensor,
or you could just connect LED pin of the sensor to VDD...
(3) You needed to write an ISR (Interrupt Service Routine) to handle FreqCount_INT
(4) You needed to wait until the ISR called to acquire FreqCount count.
(5) ... well, please refer to my sample 😉
I tested this sample with my CY8CKIT-050.
Then copied the project and modified the pins for CY8CKIT-059.
At least print function seemed to be working, but I did not test with the sensor for CY8CKIT-059.
Best Regards,
25-Jan-2019
Motoo Tanaka