Skip to content
Browse files

tweaked clock speed again to make PWM nice n smooth

1 parent 31a34ba commit e0832a4ae9a992c6c7eb403d87f77f37bc4fe2a1 @ladyada ladyada committed
Showing with 13 additions and 14 deletions.
  1. +2 −2 Firmware/cuff.asm
  2. +11 −12 Firmware/cuff.hex
View
4 Firmware/cuff.asm
@@ -25,8 +25,8 @@ RESET:
; it may look a little flickery.
ldi temp, 0xD8 ; write signature
out CCP, temp
- ; scale to divide by 64. So 8Mhz -> 128kHz
- ldi temp, (0<<CLKPS3)|(1<<CLKPS2)|(1<<CLKPS1)|(0<<CLKPS0)
+ ; scale to divide by 32. So 8Mhz -> 256kHz
+ ldi temp, (0<<CLKPS3)|(1<<CLKPS2)|(0<<CLKPS1)|(1<<CLKPS0)
out CLKPSR, temp
; set up fast PWM output timer WGM[3:0] = 0101
View
23 Firmware/cuff.hex
@@ -1,15 +1,14 @@
:020000020000FC
:0200000008C036
-:100010002CC0089A109A0EE003B908ED0CBF08E056
-:1000200006BF01EC0EBD01E80DBD00E007BD08ED07
-:100030000CBF01E401BF01E00ABF789410E0F0E4D6
-:10004000ECE6E10F13950081003009F410E006BDE5
-:1000500008ED0CBF00E401BFA895889508ED0CBF22
-:1000600001E401BFA8958895EACF18950101020324
-:1000700005080B0F14191E242B31384048505861C5
-:1000800069727B848D969EA7AFB7BFC7CED4DBE1E4
-:10009000E6EBF0F4F7FAFCFDFEFFFEFDFCFAF7F4E8
-:1000A000F0EBE6E1DBD4CEC7BFB7AFA79E968D8459
-:1000B0007B7269615850484038312B241E19140F47
-:0800C0000B080503020100001A
+:1000100025C0089A109A0EE003B908ED0CBF05E060
+:1000200006BF01EC0EBD01E80DBD00E007BD01E01B
+:100030000ABF7894F0E4EEE50191003009F4FACFBC
+:1000400006BD08ED0CBF00E401BFA895889508ED3A
+:100050000CBF01E401BFA8958895EECF189501016A
+:10006000020305080B0F14191E242B313840485089
+:10007000586169727B848D969EA7AFB7BFC7CED4F7
+:10008000DBE1E6EBF0F4F7FAFCFDFEFFFEFDFCFA27
+:10009000F7F4F0EBE6E1DBD4CEC7BFB7AFA79E968F
+:1000A0008D847B7269615850484038312B241E1969
+:0A00B000140F0B0805030201000005
:00000001FF

0 comments on commit e0832a4

Please sign in to comment.
Something went wrong with that request. Please try again.