Hallo, Ich habe ein Problem mit meinem Bascom code. Ich ich kann an keinem der Pins ein Signal abzapfen bzw. bleibt die Led an jedem Port aus. Ist es ein Problem mit der Verkablung oder ist der Code falsch?
1 | $regfile = "8515def.dat" |
2 | $crystal = 8000000 |
3 | |
4 | Config Pinc.0 = Input |
5 | Config Pinc.1 = Input |
6 | Config Pinc.2 = Input |
7 | |
8 | Config Timer1 = Pwm , Pwm = 10 , Compare A Pwm = Clear Down , Prescale = 1 |
9 | |
10 | |
11 | Do |
12 | |
13 | If Pinc.0 = 1 Then |
14 | Compare1a = 1023 |
15 | Elseif Pinc.1 = 1 Then |
16 | Compare1a = 512 |
17 | Elseif Pinc.2 = 1 Then |
18 | Compare1a = 200 |
19 | End If |
20 | |
21 | Loop |
Danke im vorraus Niclas