Thanks Henrik.
Of cource it should be %00000000 to set as outputs, hjärnsläpp.
I do like below @ 64mHz, but no capcitive load, and all A/Ds is off. I'll just use latx.
porta.0 = 1
porta.1 = 1
porta.2 = 1
porta.3 = 1
Thanks Henrik.
Of cource it should be %00000000 to set as outputs, hjärnsläpp.
I do like below @ 64mHz, but no capcitive load, and all A/Ds is off. I'll just use latx.
porta.0 = 1
porta.1 = 1
porta.2 = 1
porta.3 = 1
Hi Matias,
Yes, when you do things like thatRunning at high speed can cause RMW issues. What happens is that for each "bit-flip" the port is read, bit is flipped, port is being written.Code:porta.0 = 1 porta.1 = 1 porta.2 = 1 porta.3 = 1
Because the "limited" current capability of the output driver the voltage at the output doesn't rise instanously. So when PORTA.1=1 executes and the port is read the voltage at PORTA.0 hasn't reached a voltage above the threshold for a logic high so when the port is written back after flipping bit 1 bit 0 will be re-written as 0.
/Henrik.
So the recommendation is not to do consecutively bit operation but one port write.
for example:
IoannisCode:temp=porta temp=temp & $FF porta=temp
Bookmarks