hi <@U0172QZ342D> <@U016EM8L91B> i tired this LA e...
# chipignite
s
hi @Matt Venn @Tim Edwards i tired this LA example code but serial monitor does not show any output. I made all pins in and output to route it back and print on monitor.I am not sure if i set pin as output and input, will it short and route the data back?
m
If you use print to print a test message does that work? IE have you got the serial port working?
s
yes i tried uart demo and it works. this is my full code.
la.txt
t
@samarth jain: In your code, the first
print
statement occurs before the UART is enabled.
m
the LA setup looks fine to me. If you can run the serial demo and see output, but you see no output in your own program then probably you are not calling the function or doing things in the wrong order. You should at least see 0s being printed
s
Hi @Tim Edwards thanks, yes that was the issue
Hi @Matt Venn after I enable it I get only zeros as u expected . I don’t see what I expected though
5dc06902-daea-47ab-9dd7-5917e0f22370.jpg
t
@samarth jain: "_if i set pin as output and input, will it short and route the data back?_" No, it won't. We did not implement such a loopback mode. There are 128
reg_laX_data
bits, and if you execute a "write" then output will be driven on the data output bus, and if you execute a "read" then input will be read from the data input bus, and these two buses are independent.