yes good idea , I have added an auto repeat property to buttonsIs it possible to make that when i press a button and hold pressed the counter increase his value throughout the whole period when it pressed
Code:button_rpt.0[3]=1 ;button3 auto rpt
yes good idea , I have added an auto repeat property to buttonsIs it possible to make that when i press a button and hold pressed the counter increase his value throughout the whole period when it pressed
Code:button_rpt.0[3]=1 ;button3 auto rpt
Hi Richard,
I am having some issues compiling your TFT_Demo program and hope you can steer me in the right direction.
I am using Microcode Studio 5.0.0 5 and PBPX 3.0.7.4
When I first compile I get a "Syntax Error (195)". The line of code is "fillcircle 60 , 60 , 20"
I have looked through the include files and cannot find a USERCOMMAND for "fillcircle". What am I missing?
Attempting to move on, I commented out the offending fillcircle line of code and tried to compile again.
Now I get four ASM ERROR message "Address label duplication or different in second pass".
(Z001D9) (Z001DA) (Z001DB) (Z001DC)
I am very keen to get my new TFT Touchscreen operational so any advice on how to correct the above issues would be greatly appreciated.
I have attached all relevant files (main program, includes etc.) for your reference.
Cheers
Barry
VK2XBP
hi barry
the address dup messages come from having coff file generation turned on when using dt_ints , don't know why ,wish it wouldn't
see the attached screen shot to remedy that
the syntax error i think comes from not using the latest tft-spi.pbpmod file
I have uploaded the latest just incase I stuffed up
I did stuff up , seems I forgot to upload the latest version with fillcircle command in it .
apologies to all,
Thanks Richard - that did the trick!
Everything compiles and programs.
Now to breadboard it and make it work
Cheers
Barry
VK2XBP
Hi Richard,
I have had a small amount of success getting this thing going but still having a few problems.
Firstly, your .pdf circuit diagram appears to have another mistake (apart from the MCLR issue)
You show the LED connection on J2 as being Pin 9 however I believe it should be Pin 8 - or at least that's what is printed on the PCB silkscreen.
I made the necessary adjustments but still nothing. I am getting a nice 50% duty cycle PWM signal (~7.8kHz) on CCP1.
In frustration I connected the LED connection (J2 Pin 8) to the wiper of a 10k pot and adjusted it between 0V and 3.3V.
Once I got to around 3V the screen came to life - or at least half of it did
I think I might have a dodgy TFT screen.
I can see the elapsed timer counting and some of the reset button but most of the right side of the screen is scrambled with a big black ovoid shape in the middle.
Looks like I need to do another eBay purchase but don't really want to have to wait 3-4 weeks for it to arrive!
Thanks for all your help thus far. I will be in touch again once I have a new screen to play with.
Cheers
Barry
VK2XBP
your right about the schematic I have uploaded a correct version , I have replaced the transistor with a pch mosfet (saves two resistors) but it still loses a little brightness and is no better than the transistor version
I had similar issues with mine , turns out the sil connector was very poorly soldered a bit of rework fixed itmost of the right side of the screen is scrambled with a big black ovoid shape in the middle.
Last edited by richard; - 9th September 2015 at 23:25.
Bookmarks