Vybrid GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
715件の閲覧回数
ogj
Contributor IV

I'm using a Vybrid MVF61NN151CMK50 processor (Emcraft SOM) and having some weird issues with the GPIO pins. I'm trying to drive some LEDs. The cathode of the LED goes to the 3.3V supply. The anode goes to a resistor (270 ohm) and from there to an IO pin. All of the GPIO clocks are on, the IOMUX registers for these pins are set to 0x00002502 (OBE enabled, open drain enabled, 37 ohm drive, med speed, alt func = 0. The problem is that the LEDs are always on. It doesn't matter whether the PDOR shows the pin high or low. It's like the pulldown transistor won't turn off.

I have a similar situation just trying to drive a GPIO pin high. In this case the IOMUX register is set to 0x00000102 (OBE enabled, 37 ohm drive). The pin is always low, regardless of the value in the PDOR register. What am I missing? 

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
546件の閲覧回数
ogj
Contributor IV

I found the problem. I didn't realize that there is not a 1:1 correspondence between GPIOA and GPIO Port 0. For instance GPIOB0 is controlled by Port0 Pin 22. I thought that GPIOA was GPIO0.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
547件の閲覧回数
ogj
Contributor IV

I found the problem. I didn't realize that there is not a 1:1 correspondence between GPIOA and GPIO Port 0. For instance GPIOB0 is controlled by Port0 Pin 22. I thought that GPIOA was GPIO0.

0 件の賞賛
返信