Hallo,
ich bin zurzeit dabei, mithilfe eines MLX10407 IC's eine Drehspulenanzeige anzusteuern. Zur zeit hängt eine 270° Drehspule (sin+, sin-, cos+, cos-) an den LOGO1 Port's dran. Mithilfe des Datenblatts habe ich das kleine Programm geschrieben. Leider zeigt mir die Drehspulenanzeige nichts an. Was habe ich falsch gemacht?
Alles anzeigen
Gruß
Jan
ich bin zurzeit dabei, mithilfe eines MLX10407 IC's eine Drehspulenanzeige anzusteuern. Zur zeit hängt eine 270° Drehspule (sin+, sin-, cos+, cos-) an den LOGO1 Port's dran. Mithilfe des Datenblatts habe ich das kleine Programm geschrieben. Leider zeigt mir die Drehspulenanzeige nichts an. Was habe ich falsch gemacht?
BASCOM-Quellcode: MLX10407
- $regfile = "m1284pdef.dat"
- $crystal = 16000000
- Dim Ausgabe As Word
- Ausgabe = &B1001000000000001
- Config Portc.2 = Output
- Config Portc.3 = Output
- Config Portc.4 = Output
- Mlx_cs Alias Portc.2
- Mlx_sclk Alias Portc.3
- Mlx_din Alias Portc.4
- Mlx_cs = 1
- Shiftout Mlx_din , Mlx_sclk , Ausgabe , 1
- Mlx_cs = 0
- Do
- Loop
- End
Jan