Author Topic: MS51FB9AE  (Read 3027 times)

0 Members and 1 Guest are viewing this topic.

Offline 1230Topic starter

  • Newbie
  • Posts: 1
  • Country: in
MS51FB9AE
« on: March 25, 2021, 11:29:45 am »
Hi all,

pls share whats the syntax in keil for pin read?

and also if someone has some example for this controller, pls do share except that of BSP ones.

Thank you :) :-+
 

Offline crossroad

  • Contributor
  • Posts: 26
  • Country: us
  • Avian World Theory
Re: MS51FB9AE
« Reply #1 on: March 26, 2021, 02:43:42 am »
I've never worked with nuvoton chips but it should have memory mapped peripherals.

If you're not using any abstraction layer, you have to read from a specific register.

With CMSIS and STM32 chips, it can look like
Code: [Select]
variable = GPIOA->IDRThis stores the pin values of all GPIO pins to "variable" and the bit position corresponds to the respective pins

This document should have everything you need for most things you want to do with that chip, if the manufacturer did their job
https://www.nuvoton.com/export/resource-files/TRM_MS51FB9AE_MS51XB9AE_MS51XB9BE_EN_Rev1.03.pdf

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: au
Re: MS51FB9AE
« Reply #2 on: March 26, 2021, 03:22:41 am »
Hi all,

pls share whats the syntax in keil for pin read?
and also if someone has some example for this controller, pls do share except that of BSP ones.

MS51 is an 8051 cored part, so any of the keil docs for the 8051 are applicable.

One example is
8051 Bit I/O Example Program
https://www.keil.com/download/docs/84.asp
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1539
  • Country: au
Re: MS51FB9AE
« Reply #3 on: March 26, 2021, 03:24:04 am »
I've never worked with nuvoton chips but it should have memory mapped peripherals.

 The MS51 is an 8051 part, and that has direct boolean opcodes and boolean pin access.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf