I transferred my code from 20X2 to 28X2 and got all the PWM code and math working correctly but am having problems getting my serial comms working again. I am using HSERSETUP B9600_16,%001 to run in background as before but hserptr only shows a couple of characters as being in the buffer when actually I sent eight of them, so it is missing characters. Also I am getting nothing when I do a 'get' as below.
get 0, variable1
get 1, variable2
get 3, variable3
etc.
Is there difference iin the way these chips handle hser in background mode? I tried changing to 1200bd with the same result. Could hpwm be affecting the serial comms? I changed from the 20X2 to 28X2 so I could get two hpwm outputs working and I was not using any pwm on the 20X2.
Richard
get 0, variable1
get 1, variable2
get 3, variable3
etc.
Is there difference iin the way these chips handle hser in background mode? I tried changing to 1200bd with the same result. Could hpwm be affecting the serial comms? I changed from the 20X2 to 28X2 so I could get two hpwm outputs working and I was not using any pwm on the 20X2.
Richard