Hi I am new to this forum so if is in the wrong place I am sorry.
I am trying to control two DC motorsfor a small combat robot and the motor drivers I am using requires the PWM on four pins depending on direction so I need 4 PWM outputs.
I have no problem with the 8 bit counter it all works as expected but I can't seem to get any output from 16 bit counter which I am trying to run in 8 bit mode.
Unfortunately being a retired hardware man I am programming in assembler.
I have put the relevant parts of the code below in the hope that someone can tell me where I am going wrong.
;temp is r16
;temp2 is r17
ldi temp,0B11111111 ;port_A_set
out DDRA,temp ;set port A as out
ldi temp,0B11111111 ;port_B_set ;0B11111111
out DDRB,temp ;set port D as PD7-0 as out
;set_timer_0: 8bit pwm counter
;set_timer_1:16bit pwm counter 8 bit mode
;output some values to generate waveforms