This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

r.e. using the L2300 board's speaker

Hi, I am currently making a program that will make use of the speaker on th L2300 board as an ongoing buzzing sound when a certain condition is true. I am struggling a little bit as to how to achieve that. I am aware that it is port 0 pin 26, but not sure how to call on it.

Do i need to call on DAC. I've read that the volume is controllable by the potentiometer, however i am using this for a different input, will it automatically sound at its loudest?

Many thanks

Sam

Parents Reply Children
  • Sorry, but I was kind of expecting you to post a bit more information - things like what you have read. What you think you need to do based on the user manual. Things you have tried. What problems you have had while trying.

    Right now, you are giving out a big mixed information.

    You say P0 pin 26.

    But pin 26 on the LPC2368 is P3.26, i.e. bit 26 of port 3.

    P0.26 (bit 26 on port 0) is pin 6 on the LPC2368.

    And the user manual describes the four possible functions for that pin.
    - GPIO port 0 bit 26
    - AD0.3 (fourth analog input on ADC 0)
    - AOUT (analog out)
    - RXD3

    So do you think you should use it for serial receive? Or analog in? Or GPIO? or Maybe as analog out?

    If you guess analog out - have you then spent any time reading up on the Digital-toAnalog Converter (DAC) in the user manual? Where did you get stuck? What parts of the user manual is unclear?