Forum Replies Created
-
AuthorPosts
-
sumitParticipant
you need to follow this sequence as given in the datasheet –
Send Start condition
Transmit address to slave as a write command
Check for ACK from slave
Send data pointer address
Check for ACK from slave
Send Repeated Start condition
Transmit address to slave as a read command
Check for ACK from slave
Set receive enable on PIC
Generate ACK after byte is received
(repeat the previous 2 steps for every byte you want to receive)
Send Stop conditionsumitParticipantinitialization of the uart port is missing in your code…first initialise the uart port and set a common baud rate for communication between two nodes
sumitParticipantthat is not possible…in capture mode, event must trigger either for every falling edge or every rising edge, or every 4th rising edge or every 16th rising edge depending upon the value of CCP1M3 – CCP1M0. there must be some issue in the function handling the event
sumitParticipantyou will need to sample voltage from microphone in a loop which should start as there is a voltage change detected at the analog pin and voltage does not drop to zero. here voltage levels will indicate amplitude of the audio signal….the values of the amplitude can then be sent to uart…the bluetooth module works on uart, so you willl have to simply send the voltage readings through serial port
sumitParticipantwhy there is no delay ToggleEnablePin function….there must be some delay of few microseconds to generate a pulse while sending data or command
-
AuthorPosts