Skip to content

Commit

Permalink
feat: Store programmed PWM frequency for display
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Mar 30, 2021
1 parent 68d375a commit 047c86b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Pgm_Dithering: DS 1 ; Enable PWM dithering
Pgm_Startup_Power_Max: DS 1 ; Maximum power (limit) during startup (and starting initial run phase)
_Pgm_Rampup_Slope: DS 1 ;
Pgm_Rpm_Power_Slope: DS 1 ; Low RPM power protection slope (factor)
_Pgm_Pwm_Freq: DS 1 ; PWM frequency
Pgm_Pwm_Freq: DS 1 ; PWM frequency (temporary method for display)
Pgm_Direction: DS 1 ; Rotation direction
_Pgm_Input_Pol: DS 1 ; Input PWM polarity
Initialized_L_Dummy: DS 1 ; Place holder
Expand Down Expand Up @@ -331,7 +331,7 @@ Eep_Pgm_Dithering: DB DEFAULT_PGM_DITHERING
Eep_Pgm_Startup_Power_Max: DB DEFAULT_PGM_STARTUP_POWER_MAX
_Eep_Pgm_Rampup_Slope: DB 0FFh
Eep_Pgm_Rpm_Power_Slope: DB DEFAULT_PGM_RPM_POWER_SLOPE ; EEPROM copy of programmed rpm power slope (formerly startup power)
_Eep_Pgm_Pwm_Freq: DB 0FFh
Eep_Pgm_Pwm_Freq: DB (24 SHL PWM_FREQ) ; Temporary method for display
Eep_Pgm_Direction: DB DEFAULT_PGM_DIRECTION ; EEPROM copy of programmed rotation direction
_Eep__Pgm_Input_Pol: DB 0FFh
Eep_Initialized_L: DB 055h ; EEPROM initialized signature (lo byte)
Expand Down Expand Up @@ -3347,7 +3347,7 @@ set_default_parameters:
imov Temp1, #DEFAULT_PGM_STARTUP_POWER_MAX ; Pgm_Startup_Power_Max
imov Temp1, #0FFh ; _Pgm_Rampup_Slope
imov Temp1, #DEFAULT_PGM_RPM_POWER_SLOPE ; Pgm_Rpm_Power_Slope
imov Temp1, #0FFh ; _Pgm_Pwm_Freq
imov Temp1, #(24 SHL PWM_FREQ) ; Pgm_Pwm_Freq
imov Temp1, #DEFAULT_PGM_DIRECTION ; Pgm_Direction
imov Temp1, #0FFh ; _Pgm_Input_Pol

Expand Down

0 comments on commit 047c86b

Please sign in to comment.