It still does not works.
I removed all LCD code
I mapped output to different port - still can't capture anything with scope.
And there are no issues with hardware - setting these pins high-low works perfectly.
So it seems like shiftout not working?
It still does not works.
I removed all LCD code
I mapped output to different port - still can't capture anything with scope.
And there are no issues with hardware - setting these pins high-low works perfectly.
So it seems like shiftout not working?
Yes, you're sending 3 bytes (four atually if you count the command byte ($03)) but what Richard is saying is that $100 does not fit within a byte and according to the manual it will then get truncated to 8bits so in effect your shiftout statement send 3,0,0,0. Are you SURE you don't see a short pulse on the FC-pin? TrySet the scope to trig on the falling edge of RST.Code:DoIt: LOW RST SHIFTOUT TC, SCLK, 5, [$AA,$AA,$AA,$AA] HIGH RST Pause 2 Goto DoIt
how big is the biggest number that can be represented in a byte ?And I don't get, what's wrong with $100 ?
an attempt to read from address 0x1000000 a non valid 25 bit address, except that shiftout will send address of 0x00 since the 8 bit default not over writtenCode:Shiftout TC, SCLK, 5, [$03,$100,$00,$0] ' Send write command, set start offset
maybe [3,1,0,0] or [3,100,0,0] or [3\8,$100\16,0\8] or [3,$100\16,0]
Last edited by richard; - 10th November 2021 at 06:55.
Warning I'm not a teacher
Guys, issue is different - shiftout does not output any data on data pin. So for sure, there will be nothing to read with shiftin.
This is the issue.
should we just guess about the new connections and code ?
Warning I'm not a teacher
The code is posted above and connections are clearly seen from there and described
took brand new all parts, will try on breadboard later![]()
Bookmarks