Logo Search packages:      
Sourcecode: odyssey version File versions

void PicDevice::write_prog_data ( uint32_t  data  )  [protected, virtual]

Send the LOAD_PROG_DATA command and write the data to the PIC at the address specified by the program counter. This method doesn't actually program the data permanently into the PIC. It's part of the procedure though.

data The program data to send to the PIC.

Definition at line 169 of file PicDevice.cxx.

References COMMAND_LOAD_PROG_DATA, Device::io, IO::shift_bits_out(), IO::usleep(), wordmask, and write_command().

Referenced by Pic16f6xxDevice::bulk_erase(), program_cycle(), Pic16f87xADevice::write_config_word(), and Pic16f87xADevice::write_program_memory().

      data = (data & this->wordmask) << 1;
      this->io->shift_bits_out(data, 16, 1);

Generated by  Doxygen 1.6.0   Back to index